Skip to content

Commit

Permalink
"WinError 10038" fixed
Browse files Browse the repository at this point in the history
Error: "OSError: [WinError 10038] An operation was attempted on something that is not a socket" fixed.
  • Loading branch information
DogukanUrker committed Jan 17, 2024
1 parent 8816f6e commit 4fb29cd
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,7 @@ def handle_csrf_error(e):

match __name__:
case "__main__":
try:
message("2", "APP STARTED SUCCESSFULLY")
message("2", f"RUNNING ON http://{APP_HOST}:{APP_PORT}")
app.run(debug=DEBUG_MODE, host=APP_HOST, port=APP_PORT)
except:
message("1", "ERROR: APP IS DOWN")
app.run(debug=DEBUG_MODE, host=APP_HOST, port=APP_PORT)
finally:
message("3", "APP SHUT DOWN")
message("2", "APP STARTED SUCCESSFULLY")
message("2", f"RUNNING ON http://{APP_HOST}:{APP_PORT}")
app.run(debug=DEBUG_MODE, host=APP_HOST, port=APP_PORT)
message("1", "APP SHUT DOWN")

0 comments on commit 4fb29cd

Please sign in to comment.