Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066687
D2769.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
870 B
Subscribers
None
D2769.id.diff
View Options
diff --git a/swh/loader/svn/loader.py b/swh/loader/svn/loader.py
--- a/swh/loader/svn/loader.py
+++ b/swh/loader/svn/loader.py
@@ -533,8 +533,9 @@
snapshot=self._snapshot
)
self.flush()
- self.storage.origin_visit_update(
- self.origin.url, self.visit.visit, snapshot=snapshot.id)
+ if snapshot:
+ self.storage.origin_visit_update(
+ self.origin.url, self.visit.visit, snapshot=snapshot.id)
# reset internal state for next iteration
self._revisions = []
@@ -550,7 +551,7 @@
snapshot (dict): Snapshot to use if any (None by default)
Returns:
- dict: The newly created snapshot
+ Optional[Snapshot] The newly created snapshot
"""
if revision: # Priority to the revision
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 6:22 PM (11 w, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222010
Attached To
D2769: Fix crash on None snapshot.
Event Timeline
Log In to Comment