summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlihongsx <lihongx.sun@intel.com>2014-08-28 17:42:45 +0800
committeradmin <yuhuan.yang@samsung.com>2016-02-04 18:27:44 +0800
commit8fb814584287e3d2aea9c9cb9517c088a7e77a84 (patch)
treee1e303990507e3027ee48a1e222ba2c8c7ead298
parent934f78cdb04411e578c796f4782fdcb3292b29c9 (diff)
downloadmic-8fb814584287e3d2aea9c9cb9517c088a7e77a84.tar.gz
mic-8fb814584287e3d2aea9c9cb9517c088a7e77a84.tar.bz2
mic-8fb814584287e3d2aea9c9cb9517c088a7e77a84.zip
Add 'ValueError' exception.
Change-Id: I22021ebea6bd2db34150c15f588289c18929d63a
-rw-r--r--plugins/backend/yumpkgmgr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/backend/yumpkgmgr.py b/plugins/backend/yumpkgmgr.py
index 1673639..8f3112d 100644
--- a/plugins/backend/yumpkgmgr.py
+++ b/plugins/backend/yumpkgmgr.py
@@ -468,7 +468,7 @@ class Yum(BackendPlugin, yum.YumBase):
}
try:
self.__pkgs_vcsinfo[lname] = hdr['VCS']
- except KeyError:
+ except ValueError, KeyError:
self.__pkgs_vcsinfo[lname] = None
return self.__pkgs_vcsinfo