linting
This commit is contained in:
parent
e5c40eb8ce
commit
5cd01c6116
1 changed files with 1 additions and 2 deletions
|
|
@ -31,7 +31,6 @@
|
||||||
# not support PIL/pillow (python imaging library)!
|
# not support PIL/pillow (python imaging library)!
|
||||||
|
|
||||||
|
|
||||||
import json
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
@ -102,7 +101,7 @@ while True:
|
||||||
DNSQUERIES = data["queries"]["total"]
|
DNSQUERIES = data["queries"]["total"]
|
||||||
ADSBLOCKED = data["queries"]["blocked"]
|
ADSBLOCKED = data["queries"]["blocked"]
|
||||||
CLIENTS = data["clients"]["total"]
|
CLIENTS = data["clients"]["total"]
|
||||||
except Exception:
|
except (KeyError, requests.RequestException, json.JSONDecodeError):
|
||||||
DNSQUERIES = 0
|
DNSQUERIES = 0
|
||||||
ADSBLOCKED = 0
|
ADSBLOCKED = 0
|
||||||
CLIENTS = 0
|
CLIENTS = 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue