import logging
import telebot
import timer
import bot
import os

logging.basicConfig(level=logging.DEBUG,
                    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')

logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))

bot.getTracker(tgBot, logging)()

timer.getTimer(tgBot, logging)("Timer").start()

logging.info("Start polling")
while True:
    try:
        tgBot.polling()
    except Exception as e:
        logging.error(e.message)

#
# import api
#
# print api.TrackerApi.getPackageInformation(3325607157191, "shentong")

import logging
import telebot
import timer
import bot
import os

logging.basicConfig(level=logging.INFO,
                    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')

logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))

bot.getTracker(tgBot, logging)()

timer.getTimer(tgBot, logging)("Timer").start()

logging.info("Start polling")

tgBot.polling(none_stop=True)
Change While True Try to none_stop=True
Change While True Try to none_stop=True


  import logging
  import telebot
  import timer
  import bot
  import os
  
- logging.basicConfig(level=logging.DEBUG,
+ logging.basicConfig(level=logging.INFO,
                      format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
  
  logging.info("Begin start server.")
  tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))
  
  bot.getTracker(tgBot, logging)()
  
  timer.getTimer(tgBot, logging)("Timer").start()
  
  logging.info("Start polling")
- while True:
-     try:
-         tgBot.polling()
-     except Exception as e:
-         logging.error(e.message)
  
+ tgBot.polling(none_stop=True)
- #
- # import api
- #
- # print api.TrackerApi.getPackageInformation(3325607157191, "shentong")
- 
Change While True Try to none_stop=True
## Code Before:
import logging
import telebot
import timer
import bot
import os

logging.basicConfig(level=logging.DEBUG,
                    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')

logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))

bot.getTracker(tgBot, logging)()

timer.getTimer(tgBot, logging)("Timer").start()

logging.info("Start polling")
while True:
    try:
        tgBot.polling()
    except Exception as e:
        logging.error(e.message)

#
# import api
#
# print api.TrackerApi.getPackageInformation(3325607157191, "shentong")

## Instruction:
Change While True Try to none_stop=True
## Code After:
import logging
import telebot
import timer
import bot
import os

logging.basicConfig(level=logging.INFO,
                    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')

logging.info("Begin start server.")
tgBot = telebot.TeleBot(os.getenv("BOT_ID", ""))

bot.getTracker(tgBot, logging)()

timer.getTimer(tgBot, logging)("Timer").start()

logging.info("Start polling")

tgBot.polling(none_stop=True)