Skip to content

Commit

Permalink
ENH: Removing error checking so we don't reveal secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen committed Nov 22, 2024
1 parent b9368ee commit 2b24dba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions act/discovery/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,7 @@ def download_arm_data(username, token, datastream, startdate, enddate, time=None

# get url response, read the body of the message,
# and decode from bytes type to utf-8 string
try:
response_body = urlopen(query_url).read().decode('utf-8')
except Exception:
raise ValueError(query_url)
return
response_body = urlopen(query_url).read().decode('utf-8')
# if the response is an html doc, then there was an error with the user
if response_body[1:14] == '!DOCTYPE html':
raise ConnectionRefusedError('Error with user. Check username or token.')
Expand Down

0 comments on commit 2b24dba

Please sign in to comment.