fut
fut copied to clipboard
Catch errors
trafficstars
Hello,
I'm new to python and wondering how I can catch connection errors properly...
try :
session=fut.Core(my params)
except ??? :
do something
What are the errors available ? Those listed in expections.py ?UnknownError, FutError... ? Am I doing it correctly ?
Yes, but You probably have to first import error objects, for example:
from fut.exceptions import FutError