mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +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:
commit
a98943cfc3
@ -30,7 +30,8 @@ try:
|
||||
from rpm import error as RPMError
|
||||
except:
|
||||
# if rpm-python isn't installed (we might be on a debian system):
|
||||
RPMError = None
|
||||
class RPMError(Exception):
|
||||
pass
|
||||
|
||||
try:
|
||||
from http.client import HTTPException, BadStatusLine
|
||||
|
Loading…
Reference in New Issue
Block a user