Skip to content

Commit e9eae8a

Browse files
committed
Add note for query registration information failed
1 parent 4bbe0ad commit e9eae8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,8 @@ def query_keyinfo(key):
10961096
res = _urlopen(key_url % key, licdata, timeout=6.0)
10971097
data = json_loads(res.read().decode())
10981098
except Exception as e:
1099-
return '\nError: %s' % str(e)
1099+
note = 'Note: sometimes remote server is busy, please try it later'
1100+
return '\nError: %s\n%s' % (str(e), note)
11001101

11011102
name = data['name']
11021103
email = data['email']

0 commit comments

Comments
 (0)