aboutsummaryrefslogtreecommitdiffstats
path: root/slack/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/log.py')
-rw-r--r--slack/log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/log.py b/slack/log.py
index b132c0e..4b8bbe1 100644
--- a/slack/log.py
+++ b/slack/log.py
@@ -5,7 +5,7 @@ from typing import Set
import weechat
-from slack.error import format_exception
+from slack.error import store_and_format_exception
from slack.shared import shared
printed_exceptions: Set[BaseException] = set()
@@ -27,7 +27,7 @@ def print_error(message: str):
def print_exception_once(e: BaseException):
if e not in printed_exceptions:
- print_error(format_exception(e))
+ print_error(store_and_format_exception(e))
printed_exceptions.add(e)