ubuntutools/archive.py: do not raise general exception

pylint complains:

```
ubuntutools/archive.py:935:8: W0719: Raising too general exception: Exception (broad-exception-raised)
```
This commit is contained in:
Benjamin Drung 2025-12-03 13:45:46 +01:00
parent 1c81f0872d
commit 3d2ee5a1b7

View File

@ -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")