diff --git a/act/discovery/arm.py b/act/discovery/arm.py index 25e98716b7..1fda756913 100644 --- a/act/discovery/arm.py +++ b/act/discovery/arm.py @@ -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.')