From e111669b1c013f87139a056f335cce4c0538a366 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 1 Sep 2023 07:00:02 +0800 Subject: fixed return None --- index.py | 5 +---- main.py | 1 + 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 -- cgit v1.2.3