use a more specific exception ( as this could mask others issues )

This commit is contained in:
Michael Scherer 2013-01-19 17:54:59 +01:00 committed by Ville Skyttä
parent 7e3fdb127b
commit 3ac1e0c10f
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ def peek(filename, pkg, length=1024):
fobj = open(filename, 'rb')
chunk = fobj.read(length)
fobj.close()
except Exception, e: # eg. https://bugzilla.redhat.com/209876
except IOError, e: # eg. https://bugzilla.redhat.com/209876
printWarning(pkg, 'read-error', e)
if fobj:
fobj.close()