|
|
|
@ -79,6 +79,7 @@ class TouchManifest(object):
|
|
|
|
|
# Only [re]create the manifest file if one was successfully downloaded
|
|
|
|
|
# this allows for an existing image to be used if the download fails.
|
|
|
|
|
if response.code == 200:
|
|
|
|
|
if not os.path.exists(os.path.dirname(self.path)):
|
|
|
|
|
os.makedirs(os.path.dirname(self.path))
|
|
|
|
|
with open(self.path, 'w') as fp:
|
|
|
|
|
fp.write(response.read())
|
|
|
|
|