aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/gateway.py')
-rw-r--r--discord/gateway.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index 210a8822..17801ee1 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
"""
The MIT License (MIT)
@@ -162,8 +160,8 @@ class KeepAliveHandler(threading.Thread):
except KeyError:
msg = self.block_msg
else:
- stack = traceback.format_stack(frame)
- msg = '%s\nLoop thread traceback (most recent call last):\n%s' % (self.block_msg, ''.join(stack))
+ stack = ''.join(traceback.format_stack(frame))
+ msg = f'{self.block_msg}\nLoop thread traceback (most recent call last):\n{stack}'
log.warning(msg, self.shard_id, total)
except Exception: