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

sybrenstuvel / python-rsa / 351
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: rsa_oaep
DEFAULT BRANCH: master
Ran 24 Feb 2021 12:14PM UTC
Jobs 4
Files 15
Run time 11s
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
351

push

travis-ci

sybrenstuvel
Fix exception causes all over the codebase

The mistake is this: In some parts of the code, an exception is being
caught and replaced with a more user-friendly error. In these cases the
syntax `raise new_error from old_error` needs to be used.

Python's exception chaining means it shows not only the traceback of the
current exception, but that of the original exception (and possibly
more.) This is regardless of `raise from`. The usage of `raise from`
tells Python to put a more accurate message between the tracebacks.
Instead of this:

    During handling of the above exception, another exception occurred:

You'll get this:

    The above exception was the direct cause of the following exception:

The first is inaccurate, because it signifies a bug in the
exception-handling code itself, which is a separate situation than
wrapping an exception.

6 of 6 new or added lines in 3 files covered. (100.0%)

746 of 814 relevant lines covered (91.65%)

3.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 351.1 24 Feb 2021 12:14PM UTC 0
91.45
Travis Job 351.1
2 351.2 24 Feb 2021 12:14PM UTC 0
91.45
Travis Job 351.2
3 351.3 24 Feb 2021 12:14PM UTC 0
91.65
Travis Job 351.3
4 351.4 24 Feb 2021 12:14PM UTC 0
91.65
Travis Job 351.4
Source Files on build 351
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #351
  • 8ecf1d10 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