Skip to content

Commit e756f4f

Browse files
committed
#492 - Remove invalid license check as it's been handled
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 9291077 commit e756f4f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/attributecode/api.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,22 @@ def request_license_data(api_url, api_key, license_key):
6363
if not license_data['results']:
6464
msg = u"Invalid 'license': %s" % license_key
6565
errors.append(Error(ERROR, msg))
66-
6766
except HTTPError as http_e:
6867
# some auth problem
69-
if http_e.code == 403:
70-
msg = (u"Authorization denied. Invalid '--api_key'. "
71-
u"License generation is skipped.")
72-
errors.append(Error(ERROR, msg))
68+
#if http_e.code == 403:
69+
msg = (u"Authorization denied. Invalid '--api_key'. "
70+
u"License generation is skipped.")
71+
errors.append(Error(ERROR, msg))
72+
"""
73+
The invalid license is handled
74+
7375
else:
7476
# Since no api_url/api_key/network status have
7577
# problem detected, it yields 'license' is the cause of
7678
# this exception.
7779
msg = u"Invalid 'license': %s" % license_key
7880
errors.append(Error(ERROR, msg))
79-
81+
"""
8082
except Exception as e:
8183
errors.append(Error(ERROR, str(e)))
8284

0 commit comments

Comments
 (0)