# Fix db.py to be able to start up

In order to have a running “python run.py” you need to fix two lines in db.py:
on line 274 and on line 284 the indent spaces are wrong : you need to align “except” and “return” with “try” by removing 4 spaces before except and 4 spaces before return.

— db.py 2018-09-07 17:00:00.000000000 +0200
+++ db.py 2018-10-17 22:24:51.647229359 +0200
@@ -271,7 +271,7 @@

``````     # TODO: Error Handling
# If an invalid ID is passed to `get_movie`, it should return None.
``````
• ``````   except (StopIteration) as _:
``````
• except (StopIteration) as _:

``````"""
Ticket: Error Handling
``````

@@ -281,7 +281,7 @@
`get_movie` returning None.
“”"

• ``````   return None
``````
• return None

def get_all_genres():

5 Likes

Thanks for the fix

Thanks, Bleu39!
Alan

Hi Bleu39,

Thanks for reporting this issue. We are pushing a fix, and it should be reflected in the handout by the end of the day.

Sorry to anyone who encountered this issue.

Matt