buildframework/helium/sf/python/pythoncore/lib/archive/selectors.py
changeset 628 7c4a911dc066
parent 588 c7c26511138f
--- a/buildframework/helium/sf/python/pythoncore/lib/archive/selectors.py	Wed Jun 16 16:51:40 2010 +0300
+++ b/buildframework/helium/sf/python/pythoncore/lib/archive/selectors.py	Fri Aug 13 14:59:05 2010 +0300
@@ -73,7 +73,7 @@
         else:
             try:
                 policy_value = fileutils.read_policy_content(policy_file)
-            except Exception:
+            except IOError:
                 _logger.warning('POLICY_ERROR: Exception thrown parsing policy file: ' + policy_file)
                 policy_value = archive.mappers.MISSING_POLICY
         # loop through the possible values
@@ -130,7 +130,7 @@
         else:
             try:
                 policy_value = fileutils.read_symbian_policy_content(policy_file)
-            except Exception:
+            except IOError:
                 _logger.warning('POLICY_ERROR: Exception thrown parsing policy file: ' + policy_file)
                 policy_value = archive.mappers.MISSING_POLICY
         # loop through the possible values