Skip to content

Commit 21d4be8

Browse files
author
anon
committed
handle case where arg is None
1 parent 72e1c5a commit 21d4be8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

qubesadmin/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,15 +879,15 @@ def qubesd_call(
879879
raise qubesadmin.exc.QubesDaemonCommunicationError(
880880
"{} not found".format(method_path)
881881
)
882-
assert arg is not None
883882
assert dest is not None
884883
command = [
885884
"env",
886885
"QREXEC_REMOTE_DOMAIN=dom0",
887886
"QREXEC_REQUESTED_TARGET=" + dest,
888887
method_path,
889-
arg,
890888
]
889+
if arg is not None:
890+
command.append(arg)
891891
if os.getuid() != 0:
892892
command.insert(0, "sudo")
893893
(_, stdout, _) = self._call_with_stream(

0 commit comments

Comments
 (0)