autoconf - fix changes check bug with same variable name

This commit is contained in:
bunkerity 2023-09-04 14:05:34 +02:00
parent 47bf7299a1
commit 6a995723c0
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500

View file

@ -114,12 +114,12 @@ class Config(ConfigCaller):
# wait until changes are applied
while True:
changes = self._db.check_changes()
if isinstance(changes, str):
curr_changes = self._db.check_changes()
if isinstance(curr_changes, str):
self.__logger.error(
f"An error occurred when checking for changes in the database : {changes}"
f"An error occurred when checking for changes in the database : {curr_changes}"
)
elif not any(changes.values()):
elif not any(curr_changes.values()):
break
else:
self.__logger.warning(