File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff 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+ )
You can’t perform that action at this time.
0 commit comments