aboutsummaryrefslogtreecommitdiffstats
path: root/slack/shared.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-02-02 21:53:40 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commita1c4b14c8f504b39cfadd78a9010c3ed6495e123 (patch)
treef4ad95fdf5eb6d05d27e9f1d36736048a5f4ee54 /slack/shared.py
parentb91385fe3d3538704deb06bb187dc48efa87e34b (diff)
downloadwee-slack-a1c4b14c8f504b39cfadd78a9010c3ed6495e123.tar.gz
Record uncaught errors and add command to display them
Diffstat (limited to 'slack/shared.py')
-rw-r--r--slack/shared.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slack/shared.py b/slack/shared.py
index 31ff748..8dbac1a 100644
--- a/slack/shared.py
+++ b/slack/shared.py
@@ -5,6 +5,7 @@ from typing import TYPE_CHECKING, Callable, Dict, List, Union
if TYPE_CHECKING:
from slack.config import SlackConfig
+ from slack.error import UncaughtError
from slack.slack_workspace import SlackWorkspace
from slack.task import Future, Task
@@ -22,6 +23,7 @@ class Shared:
self.active_futures: Dict[str, Future[object]] = {}
self.workspaces: Dict[str, SlackWorkspace] = {}
self.config: SlackConfig
+ self.uncaught_errors: List[UncaughtError] = []
shared = Shared()