From 2b24dba9a4906a64ca616e50a4c01c8bad1f6e66 Mon Sep 17 00:00:00 2001 From: AdamTheisen Date: Fri, 22 Nov 2024 08:29:37 -0600 Subject: [PATCH] ENH: Removing error checking so we don't reveal secrets --- act/discovery/arm.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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.')