Skip to content

Commit

Permalink
check if state contains a cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Chatterjee committed May 30, 2024
1 parent 79c4290 commit 46bb88b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def state(self) -> Mapping[str, Any]:
@state.setter
def state(self, value: Mapping[str, Any]):
"""setter for state"""
self._cursor_value = value[self.cursor_field]
if self.cursor_field in value:
self._cursor_value = value[self.cursor_field]

def mk_tzaware_utc(self, dt):
"""
Expand Down

0 comments on commit 46bb88b

Please sign in to comment.