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

sybrenstuvel / python-rsa
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: rsa_oaep
DEFAULT BRANCH: master
Repo Added 05 Feb 2016 03:10PM UTC
Files 15
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

LAST BUILD ON BRANCH cool-RR-2020-06-11-raise-from
branch: cool-RR-2020-06-11-raise-from
CHANGE BRANCH
x
Reset
  • cool-RR-2020-06-11-raise-from
  • issue-98-fips-186-4-prime-selection
  • main
  • master
  • saifelse-clean-unittest-output
  • saifelse-test-mypy
  • temp-back-to-pipenv
  • temp-poetry
  • temp-travis
  • temp-zipp-fix
  • test-poetry
  • test-py37-support
  • test-threading-fix-173
  • test-tox-p38
  • version-3.4
  • version-3.4-repackaging
  • version-3.4.1
  • version-3.4.2
  • version-4.0
  • version-4.1
  • version-4.2
  • version-4.3
  • version-4.3-py27compatible
  • version-4.4
  • version-4.4.1
  • version-4.5
  • version-4.6
  • version-4.7
  • version-4.7.1
  • version-4.7.2

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

Relevant lines Covered
Build:
Build:
814 RELEVANT LINES 746 COVERED LINES
3.67 HITS PER LINE
Source Files on cool-RR-2020-06-11-raise-from
  • Tree
  • List 15
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
351 cool-RR-2020-06-11-raise-from 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. Py... push 24 Feb 2021 12:14PM UTC sybrenstuvel travis-ci pending completion  
See All Builds (291)
  • Repo 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

© 2025 Coveralls, Inc