Skip to content

Commit 4149b2d

Browse files
committed
Fixed a decorator example
1 parent 40117da commit 4149b2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

decorators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ authentication:
291291
def decorated(*args, **kwargs):
292292
auth = request.authorization
293293
if not auth or not check_auth(auth.username, auth.password):
294-
return authenticate()
294+
authenticate()
295295
return f(*args, **kwargs)
296296
return decorated
297297

0 commit comments

Comments
 (0)