buildframework/helium/sf/python/pythoncore/lib/integration/quality.py
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
   142             Case 'notinidlist': value is not defined under the id list.
   142             Case 'notinidlist': value is not defined under the id list.
   143         """
   143         """
   144         value = None
   144         value = None
   145         try:
   145         try:
   146             value = fileutils.read_policy_content(filename)
   146             value = fileutils.read_policy_content(filename)
   147         except Exception:
   147         except IOError:
   148             yield ["invalidencoding", filename, None]
   148             yield ["invalidencoding", filename, None]
   149         if value is not None:
   149         if value is not None:
   150             if self._ids != None:
   150             if self._ids != None:
   151                 if value not in self._ids:
   151                 if value not in self._ids:
   152                     yield ["notinidlist", filename, value]
   152                     yield ["notinidlist", filename, value]