The entire code is here:
A change I made in the add_book_to_user function brought this error, but I did not change that line, and it didn’t throw an error before!
Traceback (most recent call last): File "populate.py", line 1, in <module> from TomeRater import * File "/home/ben/Nextcloud/codn/programming-with-Python.Cdcdm/Projekte/TomeRater/TomeRater.py", line 177 if user_books: ^ SyntaxError: invalid syntax
Well, turns out I was missing a
) after print() statement on line 176. Why is Python finding the syntax error in the next line, not on line 176?