From 0e898d323e568a7a585e5257d5911287cdea24cb Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 9 Sep 2019 17:22:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0maps=E7=B3=BB=E5=88=97?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/priv_map.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handler/priv_map.py b/handler/priv_map.py index 605c2be..718379f 100644 --- a/handler/priv_map.py +++ b/handler/priv_map.py @@ -30,9 +30,9 @@ class PrivMaps(Resource): except Exception: log.error(f"get args failed!", exc_info=True) args = {} - print(f"args={args}") - users = args.get('args', None) - status = args.get('status', 0) + if args: + users = args.get('args', None) + status = args.get('status', 0) all_data = [] try: if users: