From 15718f913b8bb3f12d5295c6932f7a5c6ff196ec Mon Sep 17 00:00:00 2001 From: Anas <77075674+anasty17@users.noreply.github.com> Date: Tue, 7 Sep 2021 13:04:17 +0300 Subject: [PATCH] Minor change --- bot/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index 47666e5..43872e8 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -400,9 +400,12 @@ if os.path.exists('drive_folder'): with open('drive_folder', 'r+') as f: lines = f.readlines() for line in lines: - temp = line.strip().split() - DRIVES_NAMES.append(temp[0].replace("_", " ")) - DRIVES_IDS.append(temp[1]) + try: + temp = line.strip().split() + DRIVES_IDS.append(temp[1]) + DRIVES_NAMES.append(temp[0].replace("_", " ")) + except: + DRIVES_NAMES.append(None) try: INDEX_URLS.append(temp[2]) except IndexError as e: