From 3d2ee5a1b7388acbbc46a1b1ab3527ae216a0e8b Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Wed, 3 Dec 2025 13:45:46 +0100 Subject: [PATCH] ubuntutools/archive.py: do not raise general exception pylint complains: ``` ubuntutools/archive.py:935:8: W0719: Raising too general exception: Exception (broad-exception-raised) ``` --- ubuntutools/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntutools/archive.py b/ubuntutools/archive.py index d4d45bd..b28afab 100644 --- a/ubuntutools/archive.py +++ b/ubuntutools/archive.py @@ -931,8 +931,8 @@ class UbuntuCloudArchiveSourcePackage(PersonalPackageArchiveSourcePackage): class _WebJSON: - def getHostUrl(self): # pylint: disable=no-self-use - raise Exception("Not implemented") + def getHostUrl(self): + raise NotImplementedError(f"{self.__class__.__name__}.getHostUrl() is not implemented") def load(self, path=""): reader = codecs.getreader("utf-8")