forked from platformio/platformio-core
Check if "_lockfile" attribute exists
This commit is contained in:
@ -122,7 +122,7 @@ class State(object):
|
||||
raise exception.HomeDirPermissionsError(dirname(self.path))
|
||||
|
||||
def _unlock_state_file(self):
|
||||
if self._lockfile:
|
||||
if hasattr(self, "_lockfile") and self._lockfile:
|
||||
self._lockfile.release()
|
||||
|
||||
def __del__(self):
|
||||
|
Reference in New Issue
Block a user