Handle disk.save_as errors
diff --git a/circle/storage/models.py b/circle/storage/models.py
index 9a911e4..9809b6f 100644
--- a/circle/storage/models.py
+++ b/circle/storage/models.py
@@ -490,6 +490,9 @@ class Disk(TimeStampedModel):
disk.destroy()
raise humanize_exception(ugettext_noop(
"Operation aborted by user."), e)
+ except:
+ disk.destroy()
+ raise
disk.is_ready = True
disk.save()
return disk
-
Status changed to closed by commit ca7c9f
Toggle commit list
Please
register
or
sign in
to comment