Skip to content
Snippets Groups Projects
Commit 7ae3fc17 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

Merge branch 'dev' into f-delete-variables-correctly

parents 1ebdcbe0 7218f73c
No related branches found
No related tags found
2 merge requests!160STY: styling,!125F delete variables correctly
Pipeline #39847 passed
...@@ -405,9 +405,15 @@ class Crawler(object): ...@@ -405,9 +405,15 @@ class Crawler(object):
if not check_identical(cached, el, True): if not check_identical(cached, el, True):
if isinstance(p.value, db.File): if isinstance(p.value, db.File):
if p.value.path != cached.path: if p.value.path != cached.path:
raise RuntimeError("Not identical.") raise RuntimeError(
"The cached and the refernced entity are not identical.\n"
f"Cached:\n{cached}\nRefernced:\n{el}"
)
else: else:
raise RuntimeError("Not identical.") raise RuntimeError(
"The cached and the refernced entity are not identical.\n"
f"Cached:\n{cached}\nRefernced:\n{el}"
)
lst.append(cached) lst.append(cached)
else: else:
lst.append(el) lst.append(el)
...@@ -420,9 +426,15 @@ class Crawler(object): ...@@ -420,9 +426,15 @@ class Crawler(object):
if not check_identical(cached, p.value, True): if not check_identical(cached, p.value, True):
if isinstance(p.value, db.File): if isinstance(p.value, db.File):
if p.value.path != cached.path: if p.value.path != cached.path:
raise RuntimeError("Not identical.") raise RuntimeError(
"The cached and the refernced entity are not identical.\n"
f"Cached:\n{cached}\nRefernced:\n{p.value}"
)
else: else:
raise RuntimeError("Not identical.") raise RuntimeError(
"The cached and the refernced entity are not identical.\n"
f"Cached:\n{cached}\nRefernced:\n{p.value}"
)
p.value = cached p.value = cached
def get_from_remote_missing_cache(self, identifiable: Identifiable): def get_from_remote_missing_cache(self, identifiable: Identifiable):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment