Skip to content

Commit

Permalink
ENH: error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen committed Nov 21, 2024
1 parent 12d10f3 commit d800138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions act/discovery/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def download_arm_data(username, token, datastream, startdate, enddate, time=None
# and decode from bytes type to utf-8 string
try:
response_body = urlopen(query_url).read().decode('utf-8')
except Exception as error:
raise (error, ' for url: ' + query_url)
except ValueError:
raise ('Error for url: ' + query_url)
return
# if the response is an html doc, then there was an error with the user
if response_body[1:14] == '!DOCTYPE html':
Expand Down

0 comments on commit d800138

Please sign in to comment.