Skip to content

Commit

Permalink
Fix argument handling
Browse files Browse the repository at this point in the history
The `key` part of the argument handling has to be right after `args`, otherwise you'd get an `AttributeError` when trying to call `encode` on the `args` object.
  • Loading branch information
rsommer committed Dec 21, 2023
1 parent 199b26f commit adfb526
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
cert = args.cert.encode(encoding='utf-8').decode('unicode_escape')

if args.key is not None:
key = args.encode(encoding='utf-8').key.decode('unicode_escape')
key = args.key.encode(encoding='utf-8').decode('unicode_escape')
else:
key = args.key

Expand Down

0 comments on commit adfb526

Please sign in to comment.