Author: eallen
Date: 2008-10-10 08:43:43 -0400 (Fri, 10 Oct 2008)
New Revision: 2613
Modified:
mgmt/trunk/cumin/python/cumin/job.py
Log:
Guard against possible exception if job property is None
Modified: mgmt/trunk/cumin/python/cumin/job.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/job.py 2008-10-09 20:31:20 UTC (rev 2612)
+++ mgmt/trunk/cumin/python/cumin/job.py 2008-10-10 12:43:43 UTC (rev 2613)
@@ -576,8 +576,9 @@
def strip_string_quotes(self, value):
dvalue = value
- if value[:1] == "\"" and value[-1:] == "\"":
- dvalue = value[1:-1]
+ if value:
+ if value[:1] == "\"" and value[-1:] == "\"":
+ dvalue = value[1:-1]
return dvalue
class JobPropertyRenderer(TemplateRenderer):
Show replies by date