Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Closed
Open
Issue #321 opened Oct 03, 2014 by Bach Dániel@bachdaniel 
  • Report abuse
  • New issue
Report abuse New issue

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
  • Bach Dániel @bachdaniel

    Status changed to closed by commit ca7c9f

    Oct 07, 2014

    Status changed to closed by commit ca7c9f

    Status changed to closed by commit ca7c9f
    Toggle commit list
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View labels
1
1 participant
Reference: circle/cloud#321