Skip to content

error_to_catch doesn't work #313

@rohe

Description

@rohe

I get the following exception:

File "/usr/local/lib/python3.5/dist-packages/oic-0.10.0.0-py3.5.egg/oic/utils/keyio.py", line 1037, in build_keyjar
    except error_to_catch:
TypeError: catching classes that do not inherit from BaseException is not allowed

error_to_catch = getattr(__builtins__, 'FileNotFoundError', 'IOError')

a couple of lines before.

Not sure who added this but please fix.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions