mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-12-08 16:43:51 +00:00
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:
parent
1c81f0872d
commit
3d2ee5a1b7
@ -931,8 +931,8 @@ class UbuntuCloudArchiveSourcePackage(PersonalPackageArchiveSourcePackage):
|
|||||||
|
|
||||||
|
|
||||||
class _WebJSON:
|
class _WebJSON:
|
||||||
def getHostUrl(self): # pylint: disable=no-self-use
|
def getHostUrl(self):
|
||||||
raise Exception("Not implemented")
|
raise NotImplementedError(f"{self.__class__.__name__}.getHostUrl() is not implemented")
|
||||||
|
|
||||||
def load(self, path=""):
|
def load(self, path=""):
|
||||||
reader = codecs.getreader("utf-8")
|
reader = codecs.getreader("utf-8")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user