mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
Use "except Exception" to catch all exception types
This commit is contained in:
parent
6536516375
commit
a09901dcef
@ -167,7 +167,7 @@ class WarcWriter:
|
||||
if self.open_suffix == '':
|
||||
try:
|
||||
fcntl.lockf(self.f, fcntl.LOCK_UN)
|
||||
except (IOError, ValueError) as exc:
|
||||
except Exception as exc:
|
||||
self.logger.error(
|
||||
'could not unlock file %s (%s)', self.path, exc)
|
||||
self.f.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user