Veneer Project Link:
My code link:
I have a small question on this project. In step 29-31 (line 53 in the linked veneer.py file), the instructions call for the appropriate listing to be saved as
art_listing. When I did this initially and passed
art_listing into the
veneer.remove_listing() call in the
buy_artwork method, it gave me a
Value Error: list.remove(x): x not in list error.
However, when I changed the argument to just
listing, the project functioned as it was supposed to. I even added more art and different clients to test and it appears to be functioning correctly.
This leaves me with a loose variable at line 57. I’m not sure why Python is kicking out that Value Error or why x is not in the list, when they appear to be referencing the same art instance.