Small script changes.
This commit is contained in:
@ -13,6 +13,7 @@ headers = {
|
||||
"x-api-key": api_key,
|
||||
"content-type": "application/json",
|
||||
}
|
||||
yoyo = ""
|
||||
|
||||
|
||||
def load_file(basefile):
|
||||
|
||||
@ -134,11 +134,12 @@ def add_props_from_csv():
|
||||
propresponse = requests.post(prop_url, json=payload, headers=HEADERS)
|
||||
print(propresponse.status_code)
|
||||
if propresponse.status_code != 200:
|
||||
error_tupe = (learner_uud, learner_email, agency_name)
|
||||
error_tupe = (learner_uuid, learner_email, agency_name)
|
||||
errorlist.append(error_tupe)
|
||||
else:
|
||||
print(f"Looks like {learner_email} and {agency_name} was successful.")
|
||||
except TypeError as e:
|
||||
print(e)
|
||||
pass
|
||||
finally:
|
||||
print(f"Error list: {errorlist}")
|
||||
|
||||
Reference in New Issue
Block a user