Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python_dynamodb_lock/python_dynamodb_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ def acquire_lock(self,
logger.info('Trying to acquire lock for: %s, %s', partition_key, sort_key)

# plug in default values as needed
if not retry_period: retry_period = self._heartbeat_period
if not retry_timeout: retry_timeout = self._lease_duration + self._heartbeat_period
if retry_period is None: retry_period = self._heartbeat_period
if retry_timeout is None: retry_timeout = self._lease_duration + self._heartbeat_period

# create the "new" lock that needs to be acquired
new_lock = DynamoDBLock(
Expand Down