1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-28 10:46:15 +01:00

Merge branch 'rpmerror_fix' of https://github.com/mgerstner/osc

Make sure that RPMError is always a real "exception".
This commit is contained in:
Marcus Huewe 2019-07-25 12:40:30 +02:00
commit a98943cfc3

View File

@ -30,7 +30,8 @@ try:
from rpm import error as RPMError from rpm import error as RPMError
except: except:
# if rpm-python isn't installed (we might be on a debian system): # if rpm-python isn't installed (we might be on a debian system):
RPMError = None class RPMError(Exception):
pass
try: try:
from http.client import HTTPException, BadStatusLine from http.client import HTTPException, BadStatusLine