Skip to content

Commit

Permalink
Make pylint happy
Browse files Browse the repository at this point in the history
Make it clearer about unreachable state - parser.error() raises an
exception.
  • Loading branch information
marmarek committed May 15, 2024
1 parent a42602f commit 1b1bba1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qubesappmenus/receive.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ def main(args=None):
vm = args.app.domains[env_vmname]
elif not args.domains:
parser.error("You must specify at least the VM name!")
# pylint doesn't know parser.error doesn't return
assert False

Check warning on line 396 in qubesappmenus/receive.py

View check run for this annotation

Codecov / codecov/patch

qubesappmenus/receive.py#L396

Added line #L396 was not covered by tests
else:
vm = args.domains[0]

Expand Down

0 comments on commit 1b1bba1

Please sign in to comment.