Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Commit

Permalink
Remove duplicated token check
Browse files Browse the repository at this point in the history
Thanks to @ykaidong. Fix #6
  • Loading branch information
whtsky committed Mar 14, 2016
1 parent fca1f2d commit 7add95e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flask_werobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ def init_app(self, app, endpoint='werobot', rule=None):
if rule is None:
rule = config.setdefault('WEROBOT_ROLE', '/wechat')

if not check_token(token):
raise AttributeError('%s is an invalid token.' % token)

self.token = token

from flask import request, make_response
Expand Down

0 comments on commit 7add95e

Please sign in to comment.