Skip to content

Commit c4d51b8

Browse files
committed
Fix another UUID cast
1 parent 8969107 commit c4d51b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def from_row(cls, row: Record | None) -> Optional["WebhookInfo"]:
8080
github_id = row["github_id"]
8181
secret = row["secret"]
8282
return cls(
83-
id=uuid.UUID(id),
83+
id=id if isinstance(id, uuid.UUID) else uuid.UUID(id),
8484
repo=repo,
8585
user_id=user_id,
8686
room_id=room_id,

0 commit comments

Comments
 (0)