Did you know ... Search Documentation:
Handling Python errors in Prolog