From: lihongsx Date: Thu, 28 Aug 2014 09:42:45 +0000 (+0800) Subject: Add 'ValueError' exception. X-Git-Tag: accepted/tizen/5.5/unified/20191228.075036^2~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aea6d2f771a3ea8bf54e663fdf9b883b72bee026;p=platform%2Fupstream%2Fmic.git Add 'ValueError' exception. Change-Id: I22021ebea6bd2db34150c15f588289c18929d63a --- 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