mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Add generic exception handling for Slack notification
This commit is contained in:
parent
0bfb3c3dfc
commit
aaa4c1d54c
1 changed files with 3 additions and 0 deletions
|
|
@ -210,6 +210,9 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
|
|||
# You will get a SlackApiError if "ok" is False
|
||||
error_str = self._enrich_error(str(e.response["error"]), channel)
|
||||
self.log.warning("Error happened {}".format(error_str))
|
||||
except Exception as e:
|
||||
error_str = self._enrich_error(str(e), channel)
|
||||
self.log.warning("Not SlackAPI error: {}".format(error_str))
|
||||
|
||||
return None, []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue