Skip to content

Commit

Permalink
new warning in old code
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Nov 18, 2024
1 parent 17b4c3d commit 6c79d06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomenklatura/store/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ def get_entity(self, id: str) -> Optional[CE]:
if stmt.dataset not in self.last_seens:
ls_val = self.store.db.get(b(f"ls:{stmt.dataset}"))
ls = ls_val.decode("utf-8") if ls_val is not None else None
self.last_seens[stmt.dataset] = ls
if ls is not None:
self.last_seens[stmt.dataset] = ls
stmt.last_seen = self.last_seens[stmt.dataset]
return self.store.assemble(statements)

Expand Down

0 comments on commit 6c79d06

Please sign in to comment.