Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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
Does not work in python 2 either.