Skip to content
Snippets Groups Projects
Commit 61778473 authored by kazix's avatar kazix
Browse files

fix problem with project_license variable, now can be only: LICENSED or 404...

fix problem with project_license variable, now can be only: LICENSED or 404 Not Found or Repository not created
parent 4c62d688
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,11 @@ try:
c_data = c_response.text
c_answer = json.loads(c_data)
if "message" in c_answer:
print("License file: ", c_answer['message'])
lic = c_answer['message']
if c_answer['message'] == '404 Commit Not Found':
lic = 'No created repository'
# print("License file: ", c_answer['message'])
else:
lic = c_answer['message']
if "file_name" in c_answer:
print("License file: ", c_answer['file_name'])
lic = c_answer['file_name']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment