Skip to content

Commit bed3aad

Browse files
committed
fixing how to scan the stracktrace for the directory that contains the WALL_E code
1 parent ff75b45 commit bed3aad

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wall_e/utilities/create_github_issue.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def create_github_issue(error_messages, config):
1212
:return:
1313
"""
1414
last_message = None
15-
if "/usr/src/app/" in error_messages: # if the directory that contains the WALL_E code is in the stacktrace
15+
error_message_body = "".join(error_messages)
16+
if "/usr/src/app/" in error_message_body: # if the directory that contains the WALL_E code is in the stacktrace
1617
# then it is probably a guarantee that the issue is due to WALL_E and not a problem with discord.py or
1718
# a network glitch
1819
last_line = len(error_messages)-1
@@ -35,6 +36,6 @@ def create_github_issue(error_messages, config):
3536
},
3637
json={
3738
"title": last_message,
38-
"body": "```\n" + "".join(error_messages) + "\n```"
39+
"body": f"```\n{error_message_body}\n```"
3940
}
4041
)

0 commit comments

Comments
 (0)