Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-20441

catch-all exceptions in gen3 butler should use `raise from`

    Details

      Description

      While debugging some changes I made related to the new astrometry code, I tripped over the except Exception as e: at posixDatastore.py::309, which swallows the initial exception. This, and any other such broad exception catching in daf_butler should use raise from exception chaining, so that the original exception information does not get lost.

        Attachments

          Activity

            People

            • Assignee:
              tjenness Tim Jenness
              Reporter:
              Parejkoj John Parejko
              Reviewers:
              John Parejko
              Watchers:
              Andy Salnikov, Jim Bosch, John Parejko, Nate Lust, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel