*.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>
Sat, 11 Apr 2020 11:44:21 +0000 (12:44 +0100)
commitf6d012dbe0052a24f7970c5a6b053d9e2e7574f6
treed2fd76a123335b13a55e0a43595c339d136c8d8a
parent1c7419c9920b70c22bbeefe00f3e11aed6c6ffbd
*.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