diff --git a/osc/babysitter.py b/osc/babysitter.py index 6ca92531..9a314cd1 100644 --- a/osc/babysitter.py +++ b/osc/babysitter.py @@ -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