This commit is contained in:
Kovid Goyal 2015-01-25 06:37:57 +05:30
parent 452bb19df1
commit cfc40a68bb

View File

@ -1546,6 +1546,8 @@ class DB(object):
# Parent directory already exists, re-raise original exception # Parent directory already exists, re-raise original exception
raise exc_info[0], exc_info[1], exc_info[2] raise exc_info[0], exc_info[1], exc_info[2]
raise raise
finally:
del exc_info
with lopen(path, 'wb') as f: with lopen(path, 'wb') as f:
f.write(raw) f.write(raw)