From d800138677d98194932028f544337e9c671c697f Mon Sep 17 00:00:00 2001 From: AdamTheisen Date: Thu, 21 Nov 2024 15:31:09 -0600 Subject: [PATCH] ENH: error handling --- act/discovery/arm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/act/discovery/arm.py b/act/discovery/arm.py index 22a7e4d41c..116569b5ed 100644 --- a/act/discovery/arm.py +++ b/act/discovery/arm.py @@ -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':