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

Connexions / cnx-archive / 1913
94%
master: 95%

Build:
Build:
LAST BUILD BRANCH: collated-content
DEFAULT BRANCH: master
Ran 17 Feb 2016 12:57PM UTC
Jobs 1
Files 39
Run time 3s
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
1913

push

travis-ci

karenc
Add `__str__` for the Ident Hash exception classes

It used to not have any information other than the exception class when
the exception is raised, for example:

```
>>> raise IdentHashMissingVersion('8ac77e82-95d8-4a90-8b06-80a83bb8e636')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cnxarchive.utils.ident_hash.IdentHashMissingVersion
>>> raise IdentHashShortId('12345678', 1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cnxarchive.utils.ident_hash.IdentHashShortId
>>> raise IdentHashSyntaxError('a@')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cnxarchive.utils.ident_hash.IdentHashSyntaxError
```

This commit changes it to:

```
>>> raise IdentHashMissingVersion('8ac77e82-95d8-4a90-8b06-80a83bb8e636')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cnxarchive.utils.ident_hash.IdentHashMissingVersion: id=8ac77e82-95d8-4a90-8b06-80a83bb8e636
>>> raise IdentHashShortId('12345678', 1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cnxarchive.utils.ident_hash.IdentHashShortId: id=12345678 version=1
>>> raise IdentHashSyntaxError('a@')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cnxarchive.utils.ident_hash.IdentHashSyntaxError: ident_hash=a@
```

5339 of 5673 relevant lines covered (94.11%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1913.1 17 Feb 2016 12:57PM UTC 0
94.11
Travis Job 1913.1
Source Files on build 1913
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1913
  • fa5caa6e on github
  • Prev Build on ident-hash-syntax-error (#1910)
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