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

xenserver-next / xen-api / 9872686984 / 1
69%
feature/py3: 78%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: feature/py3
Ran 10 Jul 2024 10:41AM UTC
Files 27
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

10 Jul 2024 10:38AM UTC coverage: 78.889%. Remained the same
9872686984.1

push

github

bernhardkaindl
XenAPIPlugin.py: Ditch the superflous catch & raise of SystemExit

In `XenAPIPlugin.py`'s `dispatch()` function, SystemExit does not need to be
caught and raised because both other exceptions are subclasses of Exception:

By design, SystemExit is a subclass of BaseException and because we
are not catching BaseException and also not use a bare `except:`
here, we can cleanup catching and re-raising `SystemExit()` here.

Reference: https://docs.python.org/3/library/exceptions.html#SystemExit

Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>

2571 of 3259 relevant lines covered (78.89%)

0.79 hits per line

Source Files on job python3.11 - 9872686984.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9872686984
  • 2a2f5384 on github
  • Prev Job for on XenAPIPlugin.py-ditch-superflous-raise-SystemExit (#9872598660.1)
  • Next Job for on XenAPIPlugin.py-ditch-superflous-raise-SystemExit (#9872818486.2)
  • Delete
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