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

Incorrect call of traceback.format_exception in ts_observatory_control

    XMLWordPrintable

Details

    • Story
    • Status: Invalid
    • Resolution: Done
    • None
    • None
    • Telescope and Site
    • No

    Description

      ts_observatory_control appears to have at least one error in formatting tracebacks. This is from a traceback in one of Bruno's noteboosk:

      File ~/notebooks/local_ups_db/ups_db/ts_observatory_control/python/lsst/ts/observatory/control/remote_group.py:720, in RemoteGroup.set_state(self, state, overrides, components)
          715 failed_components.append(comp)
          716 err_message = (
          717     f"Unable to transition {comp} to "
          718     f"{salobj.State(state)!r} {traceback.format_exc()}.\n"
          719 )
      --> 720 err_traceback = traceback.format_exception(
          721     etype=type(ret_val[i]),
          722     value=ret_val[i],
          723     tb=ret_val[i].__traceback__,
          724 )
          725 for trace in err_traceback:
          726     err_message += trace
       
      TypeError: format_exception() got an unexpected keyword argument 'etype'
      

      Attachments

        Activity

          They were using an outdated version of the packageā€¦ this was fixed a long time ago

          tribeiro Tiago Ribeiro added a comment - They were using an outdated version of the packageā€¦ this was fixed a long time ago

          People

            tribeiro Tiago Ribeiro
            rowen Russell Owen
            Bruno Quint, Russell Owen, Tiago Ribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Jenkins

                No builds found.