Tolerance window #4
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import traceback
|
import traceback
|
||||||
from crossfit_booker import CrossFitBooker
|
from crossfit_booker import CrossFitBooker
|
||||||
@@ -22,6 +23,7 @@ if __name__ == "__main__":
|
|||||||
booker = CrossFitBooker()
|
booker = CrossFitBooker()
|
||||||
|
|
||||||
# Attempt to log in to the CrossFit booking system
|
# Attempt to log in to the CrossFit booking system
|
||||||
|
# TODO: Make a authentication during running request to not get kicked out
|
||||||
if not booker.login():
|
if not booker.login():
|
||||||
# If login fails, log the error and exit the script
|
# If login fails, log the error and exit the script
|
||||||
logging.error("Failed to login - Traceback: %s", traceback.format_exc())
|
logging.error("Failed to login - Traceback: %s", traceback.format_exc())
|
||||||
|
|||||||
Reference in New Issue
Block a user