Commit 58142776 authored by tarun2512's avatar tarun2512

third commit

parent 0eab31a7
......@@ -347,7 +347,7 @@ def app_image_zip(images, folder_path):
)
app_image_folder_path = os.path.join(folder_path, image_name)
os.makedirs(app_image_folder_path)
if response.status_code == 200:
if response.status_code in [200, 201, 204]:
# Save the content of the response to a local file
with open(os.path.join(app_image_folder_path, image), 'wb') as file:
file.write(response.content)
......
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 to comment