Hi,
How can I catch errors within a library that I cannot modify?
The following code doesn't catch it.
TIA
How can I catch errors within a library that I cannot modify?
The following code doesn't catch it.
TIA
import some_lib try: #do some with the library except OSError as e: print('*** ERROR ***', str(e)) #<--- the lib code crushes but this line is not reached