diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index 7592216..9db0641 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -14,7 +14,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __license__ = "GNU General Public License v3.0" -__version__ = "2.2.0" +__version__ = "2.2.1" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/bot.py b/davtelepot/bot.py index 652bf1f..09951d5 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -243,7 +243,8 @@ class Bot(TelegramBot, ObjectWithDatabase, MultiLanguageObject): Fallback to class file if set, otherwise return None. """ - return f"{self.path}/data/{self.log_file_name}" + if self.log_file_name: + return f"{self.path}/data/{self.log_file_name}" def set_log_file_name(self, file_name): """Set log file name."""