Skip to content

FileNotFoundError caught#157

Open
leninnair wants to merge 1 commit into
pwaller:mainfrom
leninnair:fix-isvalidfont-filenotfound
Open

FileNotFoundError caught#157
leninnair wants to merge 1 commit into
pwaller:mainfrom
leninnair:fix-isvalidfont-filenotfound

Conversation

@leninnair

Copy link
Copy Markdown

Current line182 in init.py ( f = importlib.resources.files('pyfiglet.fonts').joinpath(font).open('rb')) was causing FileNotFoundError when the function isValidFont() was called with an invalid file name. It has been caught. Also, documentation added. Test case also added.

Current line182 in __init__.py ( f = importlib.resources.files('pyfiglet.fonts').joinpath(font).open('rb')) was causing FileNotFoundError when the function isValidFont() was called with an invalid file name. It has been caught. Also, documentation added. Test case also added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant