Skip to content

Commit

Permalink
Better handle "ping" vk request
Browse files Browse the repository at this point in the history
  • Loading branch information
ttedeschi authored Jul 11, 2024
1 parent b566d6f commit d476993
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,10 @@ def StatusHandler():
if len(req_list) == 0:
logging.error("Invalid request data")
logging.error(f"STATUS REQUEST DATA IS THE FOLLOWING: {req_list}")
return "Invalid request data for getting status", 400
if os.path.isfile(args.proxy):
return "This is a ping request.. I'm alive!", 200
else:
return "This is a ping request.. I'm not alive yet, no proxyfile available!", 400

req = req_list[0]

Expand Down

0 comments on commit d476993

Please sign in to comment.