Skip to content

Commit ff84a38

Browse files
committedMar 3, 2025·
Print out HTTPError instead of traceback
1 parent 856ee76 commit ff84a38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎get_solar_flare_png.py

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def main(sys_args=None):
109109
if __name__ == "__main__":
110110
try:
111111
main()
112+
except requests.exceptions.HTTPError as e:
113+
print(f"Failed to get page or image: {e}")
112114
except Exception:
113115
import traceback
114116

0 commit comments

Comments
 (0)
Please sign in to comment.