use Exception instead of BaseException for bare expection

This commit is contained in:
Yuming Zhu 2020-03-02 18:27:24 +08:00
parent b3b0c8d51e
commit cf34706f04
21 changed files with 70 additions and 70 deletions

View file

@ -71,7 +71,7 @@ class Rpmdiff:
except AttributeError:
try:
PREREQ_FLAG = rpm.RPMSENSE_PREREQ
except BaseException:
except Exception:
# (proyvind): This seems ugly, but then again so does
# this whole check as well.
PREREQ_FLAG = False