mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 18:45:51 +01:00
...
This commit is contained in:
parent
452bb19df1
commit
cfc40a68bb
1 changed files with 2 additions and 0 deletions
|
|
@ -1546,6 +1546,8 @@ def write_backup(self, path, raw):
|
|||
# Parent directory already exists, re-raise original exception
|
||||
raise exc_info[0], exc_info[1], exc_info[2]
|
||||
raise
|
||||
finally:
|
||||
del exc_info
|
||||
with lopen(path, 'wb') as f:
|
||||
f.write(raw)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue