summaryrefslogtreecommitdiff
path: root/tango
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-03-13 14:26:39 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-03-13 14:26:39 +0100
commitbfeb376e325df9995da7a150359123c26bdf768a (patch)
tree1bc7db075e04421d8068ed7eb57423bff5a26b19 /tango
parent37b60b237024be201bf296949cc06d62b3b0e4a0 (diff)
tango: return exit code other None if running
Diffstat (limited to 'tango')
-rwxr-xr-xtango/Ufo3
1 files changed, 2 insertions, 1 deletions
diff --git a/tango/Ufo b/tango/Ufo
index d6fa3b9..ec9584f 100755
--- a/tango/Ufo
+++ b/tango/Ufo
@@ -82,7 +82,8 @@ class Process(Device):
@command(dtype_in=int, doc_in="Job ID",
dtype_out=int, doc_out="Exit code of process")
def ExitCode(self, job_id):
- return self.get_job(job_id).exitcode
+ code = self.get_job(job_id).exitcode
+ return -42 if code is None else code
if __name__ == '__main__':