mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
fix syntax of assertion handling that isn't portable to older versions of Python
This commit is contained in:
parent
0eb4d83937
commit
08058c1073
@ -560,7 +560,7 @@ class OverwriteableFileConsumer(PrefixingLogMixin):
|
||||
self.is_closed = True
|
||||
try:
|
||||
self.f.close()
|
||||
except BaseException as e:
|
||||
except BaseException, e:
|
||||
self.log("suppressed %r from close of temporary file %r" % (e, self.f), level=WEIRD)
|
||||
self.finish()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user