Skip to content

Commit

Permalink
reraising
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Meyer committed Apr 15, 2018
1 parent 60da9e3 commit bb4356f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trufflepig/bchain/getaccountdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def find_nearest_index(target_datetime,
'latest_index {}'.format(account,
current_index,
latest_index))
except StopIteration:
logger.exception('Problems for index {} of account {}. '
'Reraising...'.format(current_index, account))
raise
except Exception:
logger.exception('Problems for index {} of account {}. '
'Reconnecting...'.format(current_index, account))
Expand Down

0 comments on commit bb4356f

Please sign in to comment.