Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/isida/vi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiSabler <dissy@ya.ru>2017-08-04 14:56:56 +0300
committerdiSabler <dissy@ya.ru>2017-08-04 14:56:56 +0300
commit22ccaba99d82e88ee9a7d86ce4f396c9f2c21f40 (patch)
tree8bcf037403bbe7f0c2fc966c44bfb9fbb362f363
parentafcc1c03b03f3680238a681104c68d6576bd9766 (diff)
fix: symlinks in logs #4
-rw-r--r--plugins/logger.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/logger.py b/plugins/logger.py
index d671463..c7c34a3 100644
--- a/plugins/logger.py
+++ b/plugins/logger.py
@@ -182,10 +182,7 @@ def logger(raw_in):
if CHAT_NAME:
CT += ' - %s' % CHAT_NAME
if CT and not os.path.exists(LOG_FOLDER % CT):
- try:
- os.symlink(chat_id, LOG_FOLDER % CT)
- except:
- pass
+ os.symlink('%s' % chat_id, LOG_FOLDER % CT)
if CHAT_NAME:
CHAT_TITLE += ' - <a href="https://t.me/%s" class="title-link" target="_blank">@%s</a>' % (CHAT_NAME, CHAT_NAME)
HB = HB.replace('CHATNAME_LINK', CHAT_TITLE)