Skip to content

Commit

Permalink
Switch from catching StandardError to Exception, because of kiveapi.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Oct 6, 2016
1 parent d7dcb98 commit 80a26ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion micall/monitor/kive_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def poll(self):
self.quality_dataset,
self.batch_id)
return 0
except StandardError as ex:
except Exception as ex:
failed_folder = self.downloading_folder or self.folder
is_reset_needed = True
delay_fractions = [1.0/60, 5.0/60]
Expand Down
2 changes: 1 addition & 1 deletion micall/monitor/qai_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _retry_json(self, method, path, data=None, retries=3):
headers=headers)
response.raise_for_status()
return response.json()
except StandardError:
except Exception:
if retries_remaining <= 0:
logger.error('JSON request failed for %s',
path,
Expand Down

0 comments on commit 80a26ef

Please sign in to comment.