Commit 2e63aad3 authored by anonym's avatar anonym

Improve code readability.

parent d72efd1f
......@@ -107,13 +107,16 @@ def _notify(title, body="", accept_label="", deny_label="",
urgent = ""
try:
completed_process = subprocess.run(["sudo", "-u", LIVE_USERNAME, cmd,
title, body, accept_label,
deny_label, documentation_target,
urgent],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True)
completed_process = subprocess.run(
[
"sudo", "-u", LIVE_USERNAME,
cmd, title, body, accept_label, deny_label,
documentation_target, urgent
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True
)
if completed_process.returncode == 1:
# sudo failed to execute the command
raise OSError(completed_process.stderr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment