DM-54302: Fall back to read the raw fits when json is not available#370
DM-54302: Fall back to read the raw fits when json is not available#370
Conversation
3a02ee8 to
79fae53
Compare
| ) from e | ||
| except Exception as e: | ||
| raise RuntimeError( | ||
| f"Unable to retrieve group ID from {image}: {e}" |
There was a problem hiding this comment.
The {e} should not be necessary if you're chaining the exception. What's the reason for catching and wrapping Exception, though?
There was a problem hiding this comment.
My thought was to just add a clearer error message, but yes it's not necessary.
|
Can any of this be tested in |
479a245 to
3255f90
Compare
|
Good idea -- thank you; a test is added. I needed to adjust the implementation to make it testable with |
3255f90 to
138e5b9
Compare
No description provided.