2020-10-19 11:40:55,499 (util.py:75 WorkerThread1) ERROR - TeleBot: "ValueError occurred, args=('I/O operation on closed file.',)
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\site-packages\telebot\util.py", line 69, in run
task(*args, **kwargs)
File "D:/Emil Programm/Telegram_bot/hks_bot_telegram.py", line 483, in meter_reading
for line in id_chat_1:
ValueError: I/O operation on closed file.
"
Traceback (most recent call last):
File "D:/Emil Programm/Telegram_bot/hks_bot_telegram.py", line 1223, in <module>
bot.polling()
File "C:\Program Files\Python38\lib\site-packages\telebot\__init__.py", line 427, in polling
self.__threaded_polling(none_stop, interval, timeout)
File "C:\Program Files\Python38\lib\site-packages\telebot\__init__.py", line 451, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Program Files\Python38\lib\site-packages\telebot\util.py", line 118, in raise_exceptions
six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
File "C:\Program Files\Python38\lib\site-packages\six.py", line 703, in reraise
raise value
File "C:\Program Files\Python38\lib\site-packages\telebot\util.py", line 69, in run
task(*args, **kwargs)
File "D:/Emil Programm/Telegram_bot/hks_bot_telegram.py", line 483, in meter_reading
for line in id_chat_1:
ValueError: I/O operation on closed file.