Skip to content

Commit

Permalink
Merge pull request #39 from mcilya/next
Browse files Browse the repository at this point in the history
Handle ConnectionResetError
  • Loading branch information
ada-af committed Nov 29, 2020
2 parents aad9e0b + c54c491 commit eb46ce6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dermod/imgloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ def __init__(self, url, fileid, fileform=''):

def run(self):
print(f"Receiving {self.id}") if self.format == '' else ''
self.get_raw_image()
try:
self.get_raw_image()
except:
self.readiness = 1
quit(0)
print(f"Wiritng {self.id}") if self.format == '' else ''
self.writer()
self.readiness = 1
Expand Down

0 comments on commit eb46ce6

Please sign in to comment.