From 6b948d4b2b0b181cc277678febcb708172e0d2f7 Mon Sep 17 00:00:00 2001 From: USA Hexor Date: Thu, 17 May 2018 15:58:53 +0000 Subject: [PATCH] Fix include issue --- .gitignore | 2 ++ baraban.py | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 6166331..9d8c2f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ # configs creds.ini tg_settings.py +*.swp +*.swo # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/baraban.py b/baraban.py index 24a702a..7ce776b 100755 --- a/baraban.py +++ b/baraban.py @@ -11,6 +11,11 @@ import telegram from telegram.error import NetworkError, Unauthorized from time import sleep import tg_settings +try: + if os.environ["DRYRUN"]: + from dryrun import Perdoliq +except: + from main import Perdoliq update_id = None @@ -20,11 +25,6 @@ def main(): global update_id # Telegram Bot Authorization Token TOKEN = tg_settings.TG_TOKEN - try: - if os.environ["DRYRUN"]: - from dryrun import Perdoliq - except: - from main import Perdoliq bot = telegram.Bot(TOKEN) # get the first pending update_id,