Skip to content
Snippets Groups Projects
Commit b9bac7e8 authored by David Douard's avatar David Douard
Browse files

API: use default's APIError exception instead of the VaultAPIError

this later does not brings anything over the default's one.

This requires swh.core >= 0.0.56
parent d9103b69
No related branches found
Tags debian/0.0.33-1_swh1
No related merge requests found
swh.core >= 0.0.44
swh.core >= 0.0.56
swh.model >= 0.0.27
swh.objstorage >= 0.0.17
swh.scheduler >= 0.0.39
......
......@@ -7,20 +7,9 @@ from swh.model import hashutil
from swh.core.api import SWHRemoteAPI
class VaultAPIError(Exception):
"""Vault API Error"""
def __str__(self):
return ('An unexpected error occurred in the Vault backend: {}'
.format(self.args))
class RemoteVaultClient(SWHRemoteAPI):
"""Client to the Software Heritage vault cache."""
def __init__(self, url, timeout=None):
super().__init__(
api_exception=VaultAPIError, url=url, timeout=timeout)
# Web API endpoints
def fetch(self, obj_type, obj_id):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment