Skip to content

Commit

Permalink
Fix unhandled exception in LookasideCacheHelper
Browse files Browse the repository at this point in the history
Signed-off-by: František Nečas <fifinecas@seznam.cz>
  • Loading branch information
FrNecas authored and nforro committed Mar 26, 2020
1 parent 17854cf commit 81da3e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rebasehelper/helpers/lookaside_cache_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def post(check_only=False):
logger.info('Uploading %s to lookaside cache', path)
try:
post()
except requests.exceptions.ConnectionError as e:
# Skip error, the rebase can continue even after a failed upload
logger.error("Upload to lookaside cache failed: %s", str(e))
finally:
sys.stdout.write('\n')
sys.stdout.flush()
Expand Down

0 comments on commit 81da3e3

Please sign in to comment.