Add 'ValueError' exception.
authorlihongsx <lihongx.sun@intel.com>
Thu, 28 Aug 2014 09:42:45 +0000 (17:42 +0800)
committeradmin <yuhuan.yang@samsung.com>
Thu, 4 Feb 2016 10:27:44 +0000 (18:27 +0800)
Change-Id: I22021ebea6bd2db34150c15f588289c18929d63a

plugins/backend/yumpkgmgr.py

index 1673639..8f3112d 100644 (file)
@@ -468,7 +468,7 @@ class Yum(BackendPlugin, yum.YumBase):
                     }
             try:
                 self.__pkgs_vcsinfo[lname] = hdr['VCS']
                     }
             try:
                 self.__pkgs_vcsinfo[lname] = hdr['VCS']
-            except KeyError:
+            except ValueError, KeyError:
                 self.__pkgs_vcsinfo[lname] = None
 
         return self.__pkgs_vcsinfo
                 self.__pkgs_vcsinfo[lname] = None
 
         return self.__pkgs_vcsinfo