Page MenuHomeSoftware Heritage

D7827.diff
No OneTemporary

D7827.diff

diff --git a/swh/loader/core/loader.py b/swh/loader/core/loader.py
--- a/swh/loader/core/loader.py
+++ b/swh/loader/core/loader.py
@@ -362,6 +362,8 @@
total_time_store_data = 0.0
try:
+ # Initially not a success, will be True when actually one
+ success = False
with self.statsd_timed("prepare"):
self.prepare()
@@ -395,7 +397,6 @@
):
self.post_load()
except Exception as e:
- success = False
if isinstance(e, NotFound):
status = "not_found"
task_status = "uneventful"

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 11:47 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225050

Event Timeline