*.py: Hack around Python exception-catching syntax mismatch.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 21 Oct 2019 16:53:43 +0000 (17:53 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
commita41fd652df29e991c71b40f7b6cab2062d8bd1b3
tree8d1651c28b178eb97e70c36d9df0b3660065ffb0
parente3b6c0d3a6b97f41ec4e66b58ec0395c146a86ac
*.py: Hack around Python exception-catching syntax mismatch.

There's no common syntax to capture the current exception value between
Python 2.5 and 3: the former wants

       try: ...
except EXCCLS, VAR: ...

while the latter wants

       try: ...
except EXCCLS as VAR: ...

Give up and dig the exception value out of `sys.exc_info()' instead.
catacomb/pwsafe.py
pock
pwsafe