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

raise error when empty directory given to ecospold2 importer #147

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

BenPortner
Copy link
Member

The ecospold importer should raise an error when an empty directory is given. Currently, import scripts fail with cryptic error messages somewhere down the line and it is not possible for inexperienced users to figure out where the error comes from.

Related issues:
brightway-lca/brightway2#54
#97

@BenPortner BenPortner added the enhancement New feature or request label Nov 16, 2022
@tngTUDOR
Copy link
Contributor

tngTUDOR commented Nov 16, 2022

@BenPortner The code you propose seems very straightforward, and the "checks" / tests pass. I don't have anything against merging your PR.
However before hitting the button, we need @cmutel advice on this, given the current state of "versions" of bw2io being released.

@cmutel cmutel merged commit 852fb74 into main Feb 21, 2023
@cmutel cmutel deleted the error_when_empty_import_dir branch February 21, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants