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: