Skip to content

Commit

Permalink
align with diskcache api
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Dec 2, 2024
1 parent 6c2e7f7 commit 47fe110
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pioreactor/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,6 @@ def pop(self, key, default=None):
self.cursor.execute(f"SELECT value FROM {self.table_name} WHERE key = ?", (key,))
result = self.cursor.fetchone()
if result is None:
if default is None:
raise KeyError(f"Key '{key}' not found in cache.")
return default
self.cursor.execute(f"DELETE FROM {self.table_name} WHERE key = ?", (key,))
self.conn.commit()
Expand Down

0 comments on commit 47fe110

Please sign in to comment.