Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7147863
D1266.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
927 B
Subscribers
None
D1266.diff
View Options
diff --git a/requirements-swh.txt b/requirements-swh.txt
--- a/requirements-swh.txt
+++ b/requirements-swh.txt
@@ -1,4 +1,4 @@
-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
diff --git a/swh/vault/api/client.py b/swh/vault/api/client.py
--- a/swh/vault/api/client.py
+++ b/swh/vault/api/client.py
@@ -7,20 +7,9 @@
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):
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 23, 2:12 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221326
Attached To
D1266: API: use default's APIError exception instead of the VaultAPIError
Event Timeline
Log In to Comment