2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-23 05:43:41 +01:00

Remove un-needed login check in get_mastodon()

This commit is contained in:
Jason McBrayer 2018-08-23 17:49:45 -04:00
parent f73cadee90
commit fb6e1d6b7a

View File

@ -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: