Skip to content

Commit

Permalink
krs/users.py: fix argument parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrik committed Dec 6, 2024
1 parent 5a1a6b5 commit b0c568a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion krs/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def main():

rest_client = get_rest_client()
func = args.pop('func')
if 'attr_query' in args:
if args.get('attr_query'):
query_pairs = args['attr_query']
if len(query_pairs) % 2:
parser.error('The number of arguments to --attr-query must be even')
Expand Down

0 comments on commit b0c568a

Please sign in to comment.