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

jakirkham / mplview / 115 / 1
100%
master: 100%

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

06 Dec 2017 03:34PM UTC coverage: 100.0%. First build
PYVER="3.6"

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%)

1.0 hits per line

Source Files on job 115.1 (PYVER="3.6")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 115
  • Travis Job 115.1
  • 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