Page MenuHomeSoftware Heritage

D2618.diff
No OneTemporary

D2618.diff

diff --git a/swh/web/browse/utils.py b/swh/web/browse/utils.py
--- a/swh/web/browse/utils.py
+++ b/swh/web/browse/utils.py
@@ -889,7 +889,8 @@
the context of the origin and its visit
Raises:
- NotFoundExc: if no snapshot is found for the visit of an origin.
+ swh.web.common.exc.NotFoundExc: if no snapshot is found for the visit
+ of an origin.
"""
origin_info = None
visit_info = None
diff --git a/swh/web/common/origin_save.py b/swh/web/common/origin_save.py
--- a/swh/web/common/origin_save.py
+++ b/swh/web/common/origin_save.py
@@ -389,7 +389,8 @@
Raises:
BadInputExc: the visit type or origin url is invalid
- NotFoundExc: no save requests can be found for the given origin
+ swh.web.common.exc.NotFoundExc: no save requests can be found for the
+ given origin
Returns:
list: A list of save origin requests dict as described in
diff --git a/swh/web/common/origin_visits.py b/swh/web/common/origin_visits.py
--- a/swh/web/common/origin_visits.py
+++ b/swh/web/common/origin_visits.py
@@ -31,7 +31,7 @@
* **type**: the visit type
Raises:
- NotFoundExc: if the origin is not found
+ swh.web.common.exc.NotFoundExc: if the origin is not found
"""
from swh.web.common import service
diff --git a/swh/web/common/service.py b/swh/web/common/service.py
--- a/swh/web/common/service.py
+++ b/swh/web/common/service.py
@@ -587,7 +587,8 @@
Raises:
ValueError: if the identifier provided is not of sha1 nature.
- NotFoundExc: if there is no revision with the provided sha1_git.
+ swh.web.common.exc.NotFoundExc: if there is no revision with the
+ provided sha1_git.
"""
lookup_revision(rev_sha1_git)
@@ -609,7 +610,8 @@
list: Revision log as list of revision dicts
Raises:
- NotFoundExc: if no revision corresponds to the criterion
+ swh.web.common.exc.NotFoundExc: if no revision corresponds to the
+ criterion
"""
rev_id = _lookup_revision_id_by(origin, branch_name, timestamp)
@@ -1151,7 +1153,8 @@
dictionary for the directory object type.
Raises:
- NotFoundExc: if the object could not be found in the archive
+ swh.web.common.exc.NotFoundExc: if the object could not be found in
+ the archive
BadInputExc: if the object identifier is invalid
"""
if object_type == CONTENT:

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 17, 7:59 PM (5 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218065

Event Timeline