From fb6e1d6b7ac63661a923d278b75b58b5d9bd0b2b Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Thu, 23 Aug 2018 17:49:45 -0400 Subject: [PATCH] Remove un-needed login check in get_mastodon() --- brutaldon/views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/brutaldon/views.py b/brutaldon/views.py index 1ccde65..cd40a18 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -25,11 +25,6 @@ class MastodonPool(dict, metaclass=Singleton): pass def get_mastodon(request): - if not (request.session.has_key('instance') and - (request.session.has_key('username') or - request.session.has_key('access_token'))): - raise NotLoggedInException() - pool = MastodonPool() if request.session.has_key('access_token'): try: