Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Remove un-needed login check in get_mastodon()
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcbrayer committed Aug 23, 2018
1 parent f73cade commit fb6e1d6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions brutaldon/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fb6e1d6

Please sign in to comment.