Skip to content

Don't hide exceptions #21

@TalShor

Description

@TalShor

try:
importlib.import_module("smart_open")
except:
print("smart_open not installed, please pip install smart-open")

Hides the actual exception - I had a pyOpenSSL issue with smart_open (just a version issue) and it took me 10 minutes to understand where is it from.

either do raise Exception post print - or even just print it.
but this is something that's a show stopper - so just let it crash.

Metadata

Metadata

Assignees

No one assigned

    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