Logging an uncaught exception
Traceback (most recent call last):
File "\\somewhere\ftrack_connect_pipeline\util.py", line 28, in exceptHookWrapper
method(*args, **kwargs)
File "\\somewhere\ftrack_connect_pipeline\ui\widget\actions.py", line 308, in _addRecentAction
recentActions = self._getRecentActions()
File "\\somewhere\ftrack_connect_pipeline\ui\widget\actions.py", line 276, in _getRecentActions
if not self._isRecentActionsEnabled():
File "\\somewhere\ftrack_connect_pipeline\ui\widget\actions.py", line 255, in _isRecentActionsEnabled
session = ftrack_connect_pipeline.util.get_thread_session()
File "\\somewhere\ftrack_connect_pipeline\util.py", line 153, in get_thread_session
thread._ftrack_session = get_session()
File "\\somewhere\ftrack_connect_pipeline\util.py", line 140, in get_session
auto_connect_event_hub=False
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\session.py", line 268, in __init__
self._discover_plugins(plugin_arguments=plugin_arguments)
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\session.py", line 1362, in _discover_plugins
self._plugin_paths, [self], plugin_arguments
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\plugin.py", line 120, in discover
**selected_keyword_arguments
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\resource\hook\resolver.py", line 140, in register
resolver
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\hub.py", line 406, in subscribe
subscription, callback, subscriber, priority
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\hub.py", line 453, in _add_subscriber
priority=priority
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\subscriber.py", line 13, in __init__
subscription
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\subscription.py", line 15, in __init__
self._expression = self.parser.parse(subscription)
File "C:\Program Files (x86)\ftrack-connect-package-1.1.2\common.zip\ftrack_api\event\expression.py", line 94, in parse
'Failed to parse: {0}. {1}'.format(expression, error)
ParseError: Failed to parse: topic=ftrack.location.request-resolve and source.user.username="xxxxxx@xxxxxxx.com".
Some times i encounter exceptions when initialize a Session some time i got exception when working with locations, the real exception here is completely obscured.
Could i suggest to do logging.exception() before raising another exception in exception handler?