Commit fbcfa321 authored by intrigeri's avatar intrigeri
Browse files

Update variable name to better reflect what kind of beast it currently is.

refs: #12400
parent 835b7197
......@@ -53,14 +53,14 @@ def _notify(title, body):
"""
cmd = "/usr/local/sbin/tails-notify-user"
try:
notify_user = subprocess.check_output([cmd, title, body],
stderr=subprocess.STDOUT)
notify_user_output = subprocess.check_output([cmd, title, body],
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
syslog.syslog(syslog.LOG_WARNING,
"Warning: unable to notify the user. %s returned "
"with exit code %s" % (cmd, e.returncode))
syslog.syslog(syslog.LOG_WARNING,
"%s output follows: %s." % (cmd, notify_user))
"%s output follows: %s." % (cmd, notify_user_output))
syslog.syslog(syslog.LOG_WARNING,
"The notification was: %s %s" % (title, body))
except OSError as e:
......
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