Skip to content

Commit

Permalink
ZO-4267: mock connector fix, should check for existence in content di…
Browse files Browse the repository at this point in the history
…ct and not in the locks dict
  • Loading branch information
stollero committed Feb 27, 2024
1 parent c36abf8 commit dae2911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/zeit/connector/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def unlock(self, id, locktoken=None):
return locktoken

def locked(self, id):
if id not in self._locked:
if id not in self._data:
raise KeyError(id)
id = self._get_cannonical_id(id)
return self._locked.get(id, (None, None, False))
Expand Down

0 comments on commit dae2911

Please sign in to comment.