浏览代码

fix(pdns): PEP style fix redundant parenthesis

Nils Wisiol 8 年之前
父节点
当前提交
fa6e2ac798
共有 1 个文件被更改,包括 1 次插入1 次删除
  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