summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/glance.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/glance.py b/libs/glance.py
index 3adf64b..2de0dac 100644
--- a/libs/glance.py
+++ b/libs/glance.py
@@ -42,7 +42,10 @@ class Glance(object):
image = self.find(image_name)
if image:
data = self.glance.images.data(image.id)
- os.remove(file_path)
+ try:
+ os.remove(file_path)
+ except Exception:
+ pass
with open(file_path, "w") as stream:
for chunk in data:
stream.write(chunk)