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

jakirkham / mplview / 115
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v0.0.6
DEFAULT BRANCH: master
Ran 06 Dec 2017 03:48PM UTC
Jobs 4
Files 3
Run time 13s
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
115

push

travis-ci

jakirkham
Fix a bare `except` clause by requiring `Exception`

There is no reason we need to catch an arbitrary exception here. We
should be getting a NumPy array, which we will need to index. The index
could be out of bounds, which would be an `IndexError`. There is a
remote possibility that the coordinates provides are not `float` for
some reason. So coercing them to `int`s may fail, which would be a
`ValueError`. To keep this general, just make the bare `except` catch
any `Exception`, which should handle both of these cases.

143 of 143 relevant lines covered (100.0%)

4.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 115.1 (PYVER="3.6") 06 Dec 2017 03:48PM UTC 0
100.0
Travis Job 115.1
2 115.2 (PYVER="3.5") 06 Dec 2017 03:48PM UTC 0
100.0
Travis Job 115.2
3 115.3 (PYVER="3.4") 06 Dec 2017 03:48PM UTC 0
100.0
Travis Job 115.3
4 115.4 (PYVER="2.7") 06 Dec 2017 03:48PM UTC 0
100.0
Travis Job 115.4
Source Files on build 115
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #115
  • cfc75977 on github
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