mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 02:27:13 +02:00
Check if "_lockfile" attribute exists
This commit is contained in:
@ -122,7 +122,7 @@ class State(object):
|
|||||||
raise exception.HomeDirPermissionsError(dirname(self.path))
|
raise exception.HomeDirPermissionsError(dirname(self.path))
|
||||||
|
|
||||||
def _unlock_state_file(self):
|
def _unlock_state_file(self):
|
||||||
if self._lockfile:
|
if hasattr(self, "_lockfile") and self._lockfile:
|
||||||
self._lockfile.release()
|
self._lockfile.release()
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
Reference in New Issue
Block a user