From 36976f6cfdba5d6c3d0bd686b5b63980e2857997 Mon Sep 17 00:00:00 2001 From: Luke Ogburn <21106956+logburn@users.noreply.github.com> Date: Thu, 21 Apr 2022 00:05:42 -0400 Subject: [PATCH] why doesn't it work? I don't know --- .gitignore | 3 +-- autotoot.py | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 72b414a..f3e20fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ */ -config.json -savefile.json +*.json diff --git a/autotoot.py b/autotoot.py index d06c031..1b7bb7b 100644 --- a/autotoot.py +++ b/autotoot.py @@ -20,14 +20,12 @@ def main(): # get settings if applicable neuter = False wait = 5 - try: + if "autotoot" in config: c = config["autotoot"] if "neuter" in c: neuter = c["neuter"].lower() == "true" if "wait" in c: wait = int(c["wait"]) - except: - pass print(neuter, wait) # make bots masto = bot(config, neuter=neuter)