From c08b64d3ec7da50094a7f9f709cf3e04145e8271 Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Tue, 28 Jul 2020 16:33:13 -0700 Subject: [PATCH] Fix bug in decorator: actually return handler --- src/replit/maqpy/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/replit/maqpy/utils.py b/src/replit/maqpy/utils.py index c296c00..51f5d2b 100644 --- a/src/replit/maqpy/utils.py +++ b/src/replit/maqpy/utils.py @@ -46,6 +46,8 @@ def needs_signin(func: Callable = None, login_html: str = sign_in_snippet) -> Ca else: return login_html + return handler + if func is not None: # called with no options @needs_signin return decorator(func) else: # called with options, eg @needs_signin(loginhtml='...')