summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-09-01 07:00:02 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-09-01 07:00:02 +0800
commite111669b1c013f87139a056f335cce4c0538a366 (patch)
tree00810ff41b0ab60d3b5919bd1f07c91a5153092f
parent50769543a29838f09276f65672f6fded189b6fd2 (diff)
fixed return None
-rw-r--r--index.py5
-rw-r--r--main.py1
2 files changed, 2 insertions, 4 deletions
diff --git a/index.py b/index.py
index 4b8f5eb..45ae944 100644
--- a/index.py
+++ b/index.py
@@ -5,7 +5,4 @@ app = Flask(__name__)
@app.route("/")
def main():
- try:
- return rcommand()
- except TypeError:
- return rcommand()
+ return rcommand()
diff --git a/main.py b/main.py
index fd7f2bc..9194d44 100644
--- a/main.py
+++ b/main.py
@@ -45,6 +45,7 @@ def main():
pass
else:
sleep(1)
+ main()
else:
return f'Error: {response.status_code}' # response.text