Use ResponseException for various places rather than needing to check the return value for responseness
This commit is contained in:
parent
7d17a92793
commit
065619772e
8 changed files with 17 additions and 26 deletions
|
@ -11,8 +11,6 @@ from lemoncurry import utils
|
|||
class TokenView(View):
|
||||
def get(self, req):
|
||||
token = tokens.auth(req)
|
||||
if hasattr(token, 'content'):
|
||||
return token
|
||||
res = {
|
||||
'me': token.me,
|
||||
'client_id': token.client_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue