Update personality.py

This commit is contained in:
Saifeddine ALOUI 2024-11-04 16:30:19 +01:00 committed by GitHub
parent b2c9f73a3d
commit 22299b5c7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1208,8 +1208,10 @@ Use this structure:
self.set_config(config, True) self.set_config(config, True)
if config["language"]: lang = config.get("language","english")
default_language = config["language"].lower().strip().split()[0]
if lang:
default_language = lang.lower().strip().split()[0]
else: else:
default_language = 'english' default_language = 'english'