Skip to content

Commit

Permalink
fix(mtime): prevent raise condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Nov 16, 2024
1 parent e341d2e commit 68b7dcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trame_vtklocal/module/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

def map_id_mtime(object_manager, vtk_id):
vtk_obj = object_manager.GetObjectAtId(vtk_id)
if vtk_obj is None:
return (vtk_id, 0)
return (vtk_id, vtk_obj.GetMTime())


Expand Down

0 comments on commit 68b7dcf

Please sign in to comment.