Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated TMUX

  • Loading branch information...
commit cf5c09e034b317cb04e1f9052a2a3495b5153272 1 parent 7e5984a
@sebastien authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 Sources/watchdog.py
View
8 Sources/watchdog.py
@@ -542,7 +542,11 @@ def Run( self, params ):
cmd = "tmux " + params
res = popen(cmd)
if isinstance(res, tuple):
- raise Exception("Failed running command: {0}, exception: {1}".format(cmd, res))
+ if res[1].find("failed to connect to server:") != -1:
+ # there's not tmux session running so we just return nothing
+ return ""
+ else:
+ raise Exception("Failed running command: {0}, exception: {1}".format(cmd, res))
else:
return res
@@ -814,7 +818,7 @@ def __init__( self, session, window, command, cwd="." ):
self.session = session
self.window = window
self.command = command
- self.cwd = "."
+ self.cwd = cwd
self.tmux = Tmux
def run(self, monitor, service, rule, runner):
Please sign in to comment.
Something went wrong with that request. Please try again.