From 5317c50ce7a96a37acfab3800c0935580766dbbf Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 2 Feb 2022 11:09:18 -0800 Subject: mypy clean! --- lockfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lockfile.py') diff --git a/lockfile.py b/lockfile.py index 4b6aade..03fbb9e 100644 --- a/lockfile.py +++ b/lockfile.py @@ -34,7 +34,7 @@ class LockFileException(Exception): class LockFileContents: pid: int commandline: str - expiration_timestamp: float + expiration_timestamp: Optional[float] class LockFile(object): @@ -181,7 +181,7 @@ class LockFile(object): # Has the lock expiration expired? if contents.expiration_timestamp is not None: now = datetime.datetime.now().timestamp() - if now > contents.expiration_datetime: + if now > contents.expiration_timestamp: msg = f'Lockfile {self.lockfile} expiration time has passed; force acquiring' logger.warning(msg) self.release() -- cgit v1.3