Stop trying to get items if server offline

This commit is contained in:
angelblue05 2018-10-05 00:11:20 -05:00
parent 3b3be6cf62
commit c42dddf563
1 changed files with 5 additions and 0 deletions

View File

@ -296,6 +296,11 @@ class GetItemWorker(threading.Thread):
except HTTPException as error:
LOG.error("--[ http status: %s ]", error.status)
if error.status == 'ServerUnreachable':
self.is_done = True
break
except Exception as error:
LOG.exception(error)