Browse Source

silence output

master
rscmbbng 6 years ago
parent
commit
b816539c60
  1. 8
      slog.py

8
slog.py

@ -21,14 +21,14 @@ try:
response = urllib.request.urlopen(request) response = urllib.request.urlopen(request)
except HTTPError as e: except HTTPError as e:
print('The server couldn\'t fulfill the request.') # print('The server couldn\'t fulfill the request.')
print('Error code: ', e.code) # print('Error code: ', e.code)
error = e.code error = e.code
stats['server'] = None stats['server'] = None
pass pass
except URLError as e: except URLError as e:
print('We failed to reach a server.') # print('We failed to reach a server.')
print('Reason: ', e.reason) # print('Reason: ', e.reason)
error = e.reason error = e.reason
stats['server'] = None stats['server'] = None
pass pass

Loading…
Cancel
Save