Skip to content

Commit

Permalink
clear api exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseibel committed Jun 25, 2024
1 parent b081059 commit 500b3ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions panopto_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ def _request(self, methodName, params={}):
return response
except WebFault as err:
self._log.exception(err)
raise PanoptoAPIException("Cannot connect to '{}': {}".format(
self._wsdl, err))
raise PanoptoAPIException("{}".format(
err.fault.faultstring if (
hasattr(err.fault, 'faultstring')) else err))
except Exception as err:
self._log.error('Error: ({}) {}'.format(
err, str(sys.exc_info()[0])))
Expand Down

0 comments on commit 500b3ce

Please sign in to comment.