gather: Fix bare except block

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-09-27 13:55:22 +02:00
parent 89fcb79aca
commit 4413b0df24
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ class Gather(GatherBase):
# Link downloaded package in (or link package from file repo)
try:
linker.hardlink(pkg.localPkg(), target)
except:
except Exception:
self.logger.error("Unable to link %s from the yum cache." % pkg.name)
raise