dol-sen / ssl-fetch

A convenience python library for verified ssl connection downloads using headers such as User-Agent and If-Modified-Since.
GNU General Public License v2.0
5 stars 5 forks source link

sslfetch.connections: Format the exception instead of using addition #3

Closed wking closed 10 years ago

wking commented 10 years ago

Avoid:

Traceback (most recent call last): File "./bin/gkeys", line 42, in from gkeys.cli import Main File "/.../gentoo-keys/gkeys/cli.py", line 20, in from gkeys.actions import Actions, Available_Actions File "/.../gentoo-keys/gkeys/actions.py", line 22, in from sslfetch.connections import Connector File "/.../ssl-fetch/sslfetch/connections.py", line 55, in "Error was:" + e TypeError: cannot concatenate 'str' and 'exceptions.ImportError' objects

dwfreed commented 10 years ago

Thanks :)

dastergon commented 10 years ago

+1