diff --git a/__pycache__/contact.cpython-38.pyc b/__pycache__/contact.cpython-38.pyc index 49ee2bb..0fa85d8 100644 Binary files a/__pycache__/contact.cpython-38.pyc and b/__pycache__/contact.cpython-38.pyc differ diff --git a/main.py b/main.py index 1d02042..0cccf1e 100644 --- a/main.py +++ b/main.py @@ -13,6 +13,9 @@ name = os.getenv("NAME") phone = os.getenv("PHONE") +if None in [email, app_password, folder, contact_message, name, phone]: + raise ValueError("Vous devez bien creer toutes les variables d'environnements pour que le bot fonctionne. voire variables_a_creer.tkt") + #fonction appelée pour chaque mail non lu à traiter def on_email(self, msgs): #msgs est un dictionnaire diff --git a/infos_importantes.txt b/variables_a_creer.txt similarity index 100% rename from infos_importantes.txt rename to variables_a_creer.txt