Skip to content

Commit 85d178b

Browse files
author
anon
committed
handle case where arg is None
1 parent 3852d64 commit 85d178b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

qubesadmin/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,9 @@ def qubesd_call(
885885
"QREXEC_REMOTE_DOMAIN=dom0",
886886
"QREXEC_REQUESTED_TARGET=" + dest,
887887
method_path,
888-
arg,
889888
]
889+
if arg is not None:
890+
command.append(arg)
890891
if os.getuid() != 0:
891892
command.insert(0, "sudo")
892893
(_, stdout, _) = self._call_with_stream(

0 commit comments

Comments
 (0)