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):
5959 print (f"Writing payload to: { ERROR_PAYLOAD_PATH } " )
6060 write_file (payload , ERROR_PAYLOAD_PATH )
6161 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 } " )
6364
6465 data = resp .get ('data' , None )
6566 if data is None :
6667 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 } " )
6870 except ValueError as e :
6971 text .eprint (f"Requested failed - attempt #{ i + 1 } /{ MAX_ATTEMPTS } " )
7072 if i + 1 == MAX_ATTEMPTS :
@@ -163,7 +165,8 @@ def process_variables(args):
163165 """
164166 if args :
165167 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 )} ' )
167170 variables = dict (zip (args [::2 ], args [1 ::2 ]))
168171
169172 # TODO: Make this clear that you use start and it becomes since.
@@ -177,7 +180,7 @@ def process_variables(args):
177180
178181 return variables
179182
180- return None
183+ return {}
181184
182185
183186def process_args (args ):
You can’t perform that action at this time.
0 commit comments