From fd4c78a741729873960e0120a99e06cf1a694b47 Mon Sep 17 00:00:00 2001 From: AdamTheisen Date: Thu, 21 Nov 2024 15:50:23 -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 116569b5ed..25e98716b7 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 ValueError: - raise ('Error for url: ' + query_url) + except Exception: + raise ValueError(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':