Closed Hwesta closed 9 years ago
Switched it to raise a BagError
instead of returning None, since that's more consistent with other behavior.
Also ManifestErrorDetail
inherits from BagError
now.
Thanks for the TLC :-) unfortunately I can't merge PRs anymore. But I trust someone at LC will.
It looks great, and the build passes. Does this change anything wrt the version of Python required, or anything else we should note in the README?
The with statement was added in Python 2.5 which is already below the minimum supported version (2.6).
Not that I can think of. As noted above, the with
statement was my main concern and it's pre-2.6. I can't find when re-raising was added, so I assume it's early enough (and all the builds pass).
Awesome, thanks a lot @Hwesta and @edsu !
:+1: from me
:cake:
A few small changes:
logger.foo
vslogging.foo
)sys.exit
calls, since that will exit Python and is problematic in a librarywith
statement, which automatically closes filesraise
to preserve tracebacks