From eaef3d53d8aabd7470b53d4183f272bd6440995b Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 16 Feb 2018 19:56:36 +0000 Subject: [PATCH] Has attr instead of get --- webapp/titanembeds/oauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/oauth.py b/webapp/titanembeds/oauth.py index 22defb1..18468ff 100644 --- a/webapp/titanembeds/oauth.py +++ b/webapp/titanembeds/oauth.py @@ -50,7 +50,7 @@ def get_user_guilds(): return cache.decode("utf-8") req = discordrest_from_user("/users/@me/guilds") if req.status_code != 200: - if getattr(request, "sid"): + if hasattr(request, "sid"): disconnect() return abort(req.status_code)