Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"OSError: Syntac Error" when file not found #138

Open
jacksbox opened this issue May 13, 2023 · 2 comments
Open

"OSError: Syntac Error" when file not found #138

jacksbox opened this issue May 13, 2023 · 2 comments

Comments

@jacksbox
Copy link

A minor issue, but one that took me some time to figure out.
polib raises an Exception if the specified file is not found - which makes sense.
But it does not throw a NotFound (or similar) error, instead it throws

...
OSError: Syntax error in po file (line 1)

which is kind of misleading: There is no syntax error in the file... the file is just not there.
I think the error message (and the error) should be more telling in this case.

@kthy
Copy link
Contributor

kthy commented May 13, 2023

Duplicate of #134

@izimobil
Copy link
Owner

Thank you @kthy

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

No branches or pull requests

3 participants