diff --git a/pym/cl_template.py b/pym/cl_template.py index 1361cd0..7294f6a 100644 --- a/pym/cl_template.py +++ b/pym/cl_template.py @@ -1279,7 +1279,10 @@ class xmlDoc: fieldsVal[0]) if not fieldValue: return False - return fieldValue[0].firstChild.nodeValue + if fieldValue[0].firstChild + return fieldValue[0].firstChild.nodeValue + else: + return False def getAllAreas(self): """Выдает все области"""