From: Michael Tremer Date: Fri, 25 Dec 2020 11:01:40 +0000 (+0000) Subject: errors: Rename NotAnIPFireSystemError to NotIPFireError X-Git-Tag: 0.9.28~1285^2~927 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69996ecc74cd859a37661f8866be27be088be42d;p=pakfire.git errors: Rename NotAnIPFireSystemError to NotIPFireError This is shorter :) Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/base.py b/src/pakfire/base.py index 6cfdb1679..62181328b 100644 --- a/src/pakfire/base.py +++ b/src/pakfire/base.py @@ -144,7 +144,7 @@ class Pakfire(_pakfire.Pakfire): ret = os.path.exists("/etc/ipfire-release") if not ret: - raise NotAnIPFireSystemError("You can run pakfire only on an IPFire system") + raise NotIPFireError("You can run pakfire only on an IPFire system") def clean(self): # Clean up repository caches diff --git a/src/pakfire/errors.py b/src/pakfire/errors.py index 02ea8fa47..7b698da2e 100644 --- a/src/pakfire/errors.py +++ b/src/pakfire/errors.py @@ -65,7 +65,7 @@ class FileError(Error): class FileNotFoundError(Error): pass -class NotAnIPFireSystemError(Error): +class NotIPFireError(Error): pass class OfflineModeError(Error):