mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fixed a bug, made improvements in reload system
Didn't test that much, there is still some stuff to do
This commit is contained in:
@ -8,11 +8,9 @@ import logging
|
||||
|
||||
logger = logging.getLogger('TeleBot')
|
||||
|
||||
|
||||
|
||||
class EventHandler(FileSystemEventHandler):
|
||||
def on_any_event(self, event: FileSystemEvent):
|
||||
logger.info('* Detected changes in: %s , reloading', (event.src_path))
|
||||
logger.info('* Detected changes in: %s, reloading', (event.src_path))
|
||||
restart_file()
|
||||
|
||||
def restart_file():
|
||||
|
Reference in New Issue
Block a user