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

FileNotFoundError not raised correctly #43

Closed
raimund-schluessler opened this issue May 11, 2022 · 0 comments · Fixed by #44
Closed

FileNotFoundError not raised correctly #43

raimund-schluessler opened this issue May 11, 2022 · 0 comments · Fixed by #44

Comments

@raimund-schluessler
Copy link
Contributor

@paulmueller If I am not wrong, the FileNotFoundError and its variant are not raised correctly. errno.ENOENT and filename are missing here:

raise FileNotFoundError(f"File does not exist: '{self.path}'")

impose/impose/session.py

Lines 279 to 284 in 5b2907b

raise ImposeDataFileNotFoundError(
name,
"Could not find file '{}'".format(name)
+ (f" (sig '{signature}')" if signature is not None else "")
+ "!"
)

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 a pull request may close this issue.

1 participant