From 1b8ed5b7980694e9f6dc3cdce601dd804a563c7a Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Sat, 16 Mar 2019 18:05:09 +0000 Subject: [PATCH] Ignore attributes which are empty strings --- drmaa/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drmaa/helpers.py b/drmaa/helpers.py index 7ba0ff0..33d2420 100644 --- a/drmaa/helpers.py +++ b/drmaa/helpers.py @@ -238,7 +238,8 @@ def adapt_rusage(rusage): """ rv = dict() for attr in attributes_iterator(rusage.contents): - + if attr == '': + continue k, v = attr.split('=',1) rv[k] = v return rv