mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
Whoops pt. 2
This commit is contained in:
parent
b4c45a7722
commit
3e5357d27f
2 changed files with 9 additions and 4 deletions
|
|
@ -123,6 +123,8 @@ def run():
|
|||
embed = None
|
||||
|
||||
traceback_str = "```python\n{}```".format(traceback.format_exc())
|
||||
if len(traceback.format_exc()) >= (2000 - len("```python\n```")):
|
||||
traceback_str = "```python\n...{}```".format(traceback.format_exc()[- (2000 - len("```python\n...```")):])
|
||||
await log_channel.send(content=traceback_str, embed=embed)
|
||||
|
||||
bot_token = os.environ["TOKEN"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue