summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcrop-finder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/crop-finder.py b/crop-finder.py
index 7704a88..eae5f92 100755
--- a/crop-finder.py
+++ b/crop-finder.py
@@ -1,5 +1,6 @@
import csv
import time
+import os
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
@@ -12,7 +13,7 @@ USERNAME = os.getenv("TRAVIAN_USERNAME")
PASSWORD = os.getenv("TRAVIAN_PASSWORD")
SERVER_URL = os.getenv("TRAVIAN_SERVER")
-if not USERNAME or not PASSWORD or not SERVER:
+if not USERNAME or not PASSWORD or not SERVER_URL:
print("Ошибка: Не удалось загрузить переменные окружения TRAVIAN_USERNAME, TRAVIAN_PASSWORD, TRAVIAN_SERVER")
sys.exit(1)