File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,14 @@ def fetch_github_data(query, variables=None):
59
59
print (f"Writing payload to: { ERROR_PAYLOAD_PATH } " )
60
60
write_file (payload , ERROR_PAYLOAD_PATH )
61
61
message = text .prettify (errors )
62
- raise ValueError (f"Error requesting Github. Errors:\n { message } " )
62
+ raise ValueError (
63
+ f"Error requesting Github. Errors:\n { message } " )
63
64
64
65
data = resp .get ('data' , None )
65
66
if data is None :
66
67
message = text .prettify (resp )
67
- raise ValueError (f"Error requesting Github. Details:\n { message } " )
68
+ raise ValueError (
69
+ f"Error requesting Github. Details:\n { message } " )
68
70
except ValueError as e :
69
71
text .eprint (f"Requested failed - attempt #{ i + 1 } /{ MAX_ATTEMPTS } " )
70
72
if i + 1 == MAX_ATTEMPTS :
@@ -163,7 +165,8 @@ def process_variables(args):
163
165
"""
164
166
if args :
165
167
if len (args ) % 2 :
166
- raise ValueError (f'Incomplete key-value pairs provided: { " " .join (args )} ' )
168
+ raise ValueError (
169
+ f'Incomplete key-value pairs provided: { " " .join (args )} ' )
167
170
variables = dict (zip (args [::2 ], args [1 ::2 ]))
168
171
169
172
# TODO: Make this clear that you use start and it becomes since.
@@ -177,7 +180,7 @@ def process_variables(args):
177
180
178
181
return variables
179
182
180
- return None
183
+ return {}
181
184
182
185
183
186
def process_args (args ):
You can’t perform that action at this time.
0 commit comments