• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mattupstate / flask-jwt / 116
0%

Build:
DEFAULT BRANCH: master
Ran 11 Apr 2016 12:23PM UTC
Jobs 4
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
116

Pull #84

travis-ci

dokime7
Fix AttributeError on identity

When the user object returned by the authentication_handler is a dict, this exception is raised:
  File "/usr/local/lib/python2.7/dist-packages/flask_jwt/__init__.py", line 53, in _default_jwt_payload_handler
    identity = getattr(identity, 'id') or identity['id']
AttributeError: 'dict' object has no attribute 'id'
So getattr must not raise an exception but return None in order to evaluate the second par of the if: identity['id']
Pull Request #84: Fix AttributeError on identity

154 of 161 relevant lines covered (95.65%)

3.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 116.1 11 Apr 2016 12:23PM UTC 0
95.65
Travis Job 116.1
2 116.2 11 Apr 2016 12:23PM UTC 0
95.65
Travis Job 116.2
3 116.3 11 Apr 2016 12:24PM UTC 0
95.65
Travis Job 116.3
4 116.4 11 Apr 2016 12:25PM UTC 0
95.65
Travis Job 116.4
Source Files on build 116
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #116
  • Pull Request #84
  • PR Base - master (#98)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc