amoffat/pbs — pull request #42 by Yossi (2012-02-22 19:59:18+00:00)
Title: line 195 in wait() was missing an argument. fixed to match similar line 137

self.command_ran is missing from the argument list on line 195, leading to errors like this:

```
File "/usr/local/lib/python2.6/dist-packages/pbs.py", line 195, in wait
if rc != 0: raise get_rc_exc(rc)(self.stdout, self.stderr)
TypeError: __init__() takes exactly 4 arguments (3 given)
```

if a background process returns a non-zero.

I changed it to match the similar line in __init__(), line 137 and now it works as expected.