cdtime issue exception that seem to have no base class (python2 maybe 3) #10
In python 2 for sure, didn't test in python3
import cdtime try: b = cdtime.reltime(4,"days since YYY-XX))") except: print "Failed"
catches the exception properly
import cdtime try: b = cdtime.reltime(4,"days since YYY-XX))") except Exception: print "Failed"
does not capture the exception
I "think" this is because the exception is raised at the C level and does not inherit from Exception.
This is not a big deal once you know it, but flake8 will complain that you cannot use an
The text was updated successfully, but these errors were encountered:
Does not work in python 2 either.