Explorar o código

fix(pdns): PEP style fix redundant parenthesis

Nils Wisiol %!s(int64=8) %!d(string=hai) anos
pai
achega
fa6e2ac798
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/desecapi/pdns.py

+ 1 - 1
api/desecapi/pdns.py

@@ -57,7 +57,7 @@ def _pdns_patch(url, body):
 
 def _pdns_get(url):
     r = requests.get(settings.NSLORD_PDNS_API + url, headers=headers_nslord)
-    if (r.status_code < 200 or r.status_code >= 500):
+    if r.status_code < 200 or r.status_code >= 500:
         raise Exception(r.text)
     return r