From 72207d58f8af2c21735e337a5cd8e771e1e10406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=ADdac=20Sabat=C3=A9s?= Date: Mon, 13 Jun 2022 20:36:19 +0200 Subject: [PATCH] fix log --- pibooth_telegram_upload.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pibooth_telegram_upload.py b/pibooth_telegram_upload.py index 9016478..ec2c727 100644 --- a/pibooth_telegram_upload.py +++ b/pibooth_telegram_upload.py @@ -61,7 +61,6 @@ def state_processing_exit(app, cfg): """Upload picture to Telegram chat""" if hasattr(app, "telegram_client"): chat_id = cfg.get(SECTION, "telegram_chat_id").strip('"') - # upload_path = os.path.basename(app.previous_picture_file) message = cfg.get(SECTION, "telegram_message") try: response = app.telegram_client.send_photo( @@ -70,6 +69,6 @@ def state_processing_exit(app, cfg): photo=open(app.previous_picture_file, 'rb'), parse_mode=telegram.ParseMode.MARKDOWN, ) - LOGGER.info("File uploaded to Telegram chat: " + response) + LOGGER.info("File uploaded to Telegram chat: " + str(response)) except TelegramError as e: LOGGER.error(e)