Catch empty task names,

- All the tasks do not have a name.
This commit is contained in:
Dhananjay Balan
2013-08-24 20:26:06 +05:30
committed by Chris Johns
parent a245635a2e
commit 7a415d4e43
3 changed files with 14 additions and 3 deletions

View File

@@ -253,4 +253,11 @@ class control:
def name(self):
is_string = information.is_string(self._id.api(), self._id._class())
return str(name(self.object['name'], is_string))
val = str(name(self.object['name'],is_string))
# Normal comaprision is a bit tricky with quotes
# 0 '\000' in hex == '3020275c30303027'
if val.encode('hex') == '3020275c30303027':
val = ""
return val