IMAP-Science-Operations-Center / imap-data-access

Package to download, query, and upload files from the IMAP Science Data Center.
MIT License
0 stars 8 forks source link

ENH: Print error messages when retrieving content #5

Closed greglucas closed 8 months ago

greglucas commented 8 months ago

Change Summary

This wraps the urlopen request in a try/except handler that reads any content returned from the server (like helpful error messages) and raises a new IMAPDataAccessError with that content in the message.