Skip to content

Commit 34b0aad

Browse files
committed
FIX: update error handler section 13
1 parent 95d7210 commit 34b0aad

File tree

2 files changed

+2
-2
lines changed
  • curriculum/section13/lectures

2 files changed

+2
-2
lines changed

curriculum/section13/lectures/04_encrypt_passwords_passlib/start/app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ def signup():
6060

6161

6262
@app.errorhandler(401)
63-
def auth_error():
63+
def auth_error(error):
6464
return "Not authorized"

curriculum/section13/lectures/05_login_required_decorator/start/app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ def signup():
6161

6262

6363
@app.errorhandler(401)
64-
def auth_error():
64+
def auth_error(error):
6565
return "Not authorized"

0 commit comments

Comments
 (0)