fix: unitialized variable

This commit is contained in:
Jan Stürtz 2024-02-20 23:10:57 +01:00
parent 7197b32fdd
commit 235fd9f00a
No known key found for this signature in database
GPG Key ID: 8183CC01FD23D435
1 changed files with 3 additions and 1 deletions

View File

@ -85,6 +85,8 @@ async def main() -> None: # noqa: C901
else:
use_file = True
testfolder = exampleslist[selection - 1]
else:
use_file = False
try:
async with ClientSession() as websession:
myapi = api.AnkerSolixApi(USER, PASSWORD, COUNTRY, websession, _LOGGER)
@ -263,4 +265,4 @@ if __name__ == "__main__":
except KeyboardInterrupt:
CONSOLE.info("\nAborted!")
except Exception as exception:
CONSOLE.info("%s: %s", type(exception), exception)
CONSOLE.exception("%s: %s", type(exception), exception)