Skip to content

Commit

Permalink
Return Result on Retry
Browse files Browse the repository at this point in the history
This patch fixes a bug where the result of non-file HTTP requests would
not be properly returned but just be discarded with no warnings on
retries.
  • Loading branch information
lkiesow committed Jun 6, 2021
1 parent d820cc8 commit 26f7e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentinel5dl/__init__.py
Expand Up @@ -122,7 +122,7 @@ def __http_request(path, filename=None, retries=9):
raise err
logger.warning('Retrying failed HTTP request. %s', err)
time.sleep(1)
__http_request(path, filename, retries-1)
return __http_request(path, filename, retries-1)


def _search(polygon, begin_ts, end_ts, product, processing_level,
Expand Down

0 comments on commit 26f7e6a

Please sign in to comment.