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:
commit
a98943cfc3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user