Skip to content

Commit

Permalink
add logging when no filename found (HTTP)
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Dec 3, 2024
1 parent ba84200 commit a6a79b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geospaas_processing/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ def get_file_name(cls, url, connection, **kwargs):
and url_file_name.endswith('.nc')):
return url_file_name

LOGGER.error("Could not find file name from HTTP response for %s: %s, %s, %s",
url, connection.status_code, connection.reason, connection.headers)
return ''

@classmethod
Expand Down

0 comments on commit a6a79b0

Please sign in to comment.