Skip to content

Commit

Permalink
ensure db connection on odm document reload (#4561)
Browse files Browse the repository at this point in the history
  • Loading branch information
swheaton authored Jul 11, 2024
1 parent c43fb2f commit ea8774b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fiftyone/core/odm/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ def reload(self, *fields, **kwargs):
Args:
*fields: an optional args list of specific fields to reload
"""
ensure_connection()
super().reload(*fields, **kwargs)

def save(
Expand Down

0 comments on commit ea8774b

Please sign in to comment.