Skip to content

Commit 51431e2

Browse files
committed
🔧 fix
1 parent 1458c64 commit 51431e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeboxapi/box/codebox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def from_id(cls, session_id: UUID) -> "CodeBox":
7474

7575
def _update(self) -> None:
7676
"""Update last interaction time"""
77-
if self.session_id is not None:
77+
if self.session_id is None:
7878
raise RuntimeError("Make sure to start your CodeBox before using it.")
7979
self.last_interaction = datetime.now()
8080

0 commit comments

Comments
 (0)