Skip to content

Commit 896f4b9

Browse files
committed
Fix improper variable cast in databasesync.py
1 parent d47b6d0 commit 896f4b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/collaboration/databasesync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_local_snapshot_for_remote(snapshot: snapshot.CollabSnapshot, database: D
177177
:raises RuntimeError: If there was an error
178178
"""
179179
value = core.BNSnapshotHandle()
180-
if not core.BNCollaborationGetLocalSnapshotFromRemote(snapshot._handle, ctypes.cast(database.handle, core.BNSnapshotHandle), value):
180+
if not core.BNCollaborationGetLocalSnapshotFromRemote(snapshot._handle, ctypes.cast(database.handle, core.BNDatabaseHandle), value):
181181
raise RuntimeError(util._last_error())
182182
if not value:
183183
return None

0 commit comments

Comments
 (0)