Skip to content

Commit 54958aa

Browse files
committed
adding an error to ignore
1 parent f471697 commit 54958aa

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

wall_e/utilities/create_github_issue.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,20 @@ def create_github_issue(error_messages, config):
3838
)
3939
beginning_of_error_message = beginning_of_error_message.regs[0][1] if beginning_of_error_message else 0
4040
last_message = last_message[beginning_of_error_message:]
41-
requests.post(
42-
url="https://api.github.com/repos/csss/wall_e/issues",
43-
headers={
44-
"Accept": "application/vnd.github+json",
45-
"Authorization": f"Bearer {config.get_config_value('github', 'TOKEN')}"
46-
},
47-
json={
48-
"title": last_message,
49-
"body": f"```\n{error_message_body}\n```"
50-
}
51-
)
41+
discord_internet_issues = [
42+
"503 Service Unavailable (error code: 0): upstream connect error or disconnect/reset before headers. "
43+
"reset reason: remote connection failure, transport failure reason: immediate connect error: No such "
44+
"file or directory"
45+
]
46+
if last_message not in discord_internet_issues:
47+
requests.post(
48+
url="https://api.github.com/repos/csss/wall_e/issues",
49+
headers={
50+
"Accept": "application/vnd.github+json",
51+
"Authorization": f"Bearer {config.get_config_value('github', 'TOKEN')}"
52+
},
53+
json={
54+
"title": last_message,
55+
"body": f"```\n{error_message_body}\n```"
56+
}
57+
)

0 commit comments

Comments
 (0)