diff --git a/book_crossfit.py b/book_crossfit.py index fabd0e7..604dc9c 100755 --- a/book_crossfit.py +++ b/book_crossfit.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 + import logging import traceback from crossfit_booker import CrossFitBooker @@ -22,6 +23,7 @@ if __name__ == "__main__": booker = CrossFitBooker() # 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 login fails, log the error and exit the script logging.error("Failed to login - Traceback: %s", traceback.format_exc())