Update handling of errors and update mistyping of license in script
This commit is contained in:
parent
2e17cc22c9
commit
0370a8f930
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import shlex, subprocess
|
|||
SCRIPT_NAME = "pyshnotify"
|
||||
SCRIPT_AUTHOR = "Tony Blyler <tony@blyler.cc>"
|
||||
SCRIPT_VERSION = "1.0"
|
||||
SCRIPT_LICENSE = "GPL3"
|
||||
SCRIPT_LICENSE = "MPL2"
|
||||
SCRIPT_DESC = "Execute command from highlights and private messages"
|
||||
|
||||
def on_msg(data, buffer, timestamp, tags, displayed, highlight, sender, message):
|
||||
|
@ -20,7 +20,7 @@ def on_msg(data, buffer, timestamp, tags, displayed, highlight, sender, message)
|
|||
stdout, stderr = proc.communicate()
|
||||
|
||||
if proc.returncode != 0:
|
||||
w.prnt("", weechat.prefix("error") + " Unable to run command: '" + cmd + "' stdout: '" + stdout + "' stderr: '" + stderr + "'")
|
||||
w.prnt("", w.prefix("error") + " Unable to run command: '" + cmd + "' stdout: '" + stdout + "' stderr: '" + stderr + "'")
|
||||
return w.WEECHAT_RC_ERROR
|
||||
|
||||
return w.WEECHAT_RC_OK
|
||||
|
|
Loading…
Reference in a new issue