As the error states, an empty sequence has been passed to max.
When you have an error you should show the code that resulted in the error and the full error traceback.
When you have an error you should show the code that resulted in the error and the full error traceback.