Permalink
Browse files

Don't try to get the values from the watcher if they don't exist.

  • Loading branch information...
1 parent 58433fb commit 60471b733e81a7caca1962bd150b5dd8efc3639e @almet almet committed Jun 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 circus/process.py
View
@@ -148,7 +148,8 @@ def format_args(self):
if self.watcher is not None:
for option in self.watcher.optnames:
- if option not in format_kwargs:
+ if option not in format_kwargs\
+ and hasattr(self.watcher, option):
format_kwargs[option] = getattr(self.watcher, option)
cmd = replace_gnu_args(self.cmd, **format_kwargs)

0 comments on commit 60471b7

Please sign in to comment.