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

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

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

10 Jul 2024 10:38AM UTC coverage: 69.004%. Remained the same
9872686984

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>

2785 of 4036 relevant lines covered (69.0%)

0.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 9872686984.1 10 Jul 2024 10:39AM UTC 0
78.89
GitHub Action Run
2 python2.7 - 9872686984.2 10 Jul 2024 10:40AM UTC 0
27.54
GitHub Action Run
Source Files on build 9872686984
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #9872686984
  • 2a2f5384 on github
  • Prev Build on XenAPIPlugin.py-ditch-superflous-raise-SystemExit (#9872598660)
  • Next Build on XenAPIPlugin.py-ditch-superflous-raise-SystemExit (#9872818486)
  • 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