Skip to content

Commit

Permalink
delete counter for recover attempts when request is finished with suc…
Browse files Browse the repository at this point in the history
…cess
  • Loading branch information
michalbrauner committed Dec 14, 2018
1 parent de87eca commit caaa9a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datahandlers/bars_provider/oanda_bars_provider_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def handle_bars_for_symbol(self, symbol: str):
if candle['complete']:
newest_closed_bar = candle

self.attempts_to_recover_after_oanda_exception[symbol] = 0

except Exception as e:
self.attempts_to_recover_after_oanda_exception[symbol] += 1

Expand Down

0 comments on commit caaa9a6

Please sign in to comment.