Skip to content

Commit 841a39f

Browse files
committed
fix(user): change to throw useful exception
Currently, when a user hits the /users/<username>/suggested route, a large exception is thrown in the logs since this route is not implemented. A NotImplementedError would be more useful for the time being. Resolves umermansoor#4
1 parent fa3c5a7 commit 841a39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def user_suggested(username):
8282
:param username:
8383
:return: Suggested movies
8484
"""
85-
pass
85+
raise NotImplementedError()
8686

8787

8888
if __name__ == "__main__":

0 commit comments

Comments
 (0)