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

Fix error message and default value for status #507

Merged
merged 13 commits into from
Mar 29, 2022
Merged

Conversation

KaoruNishikawa
Copy link
Contributor

@KaoruNishikawa KaoruNishikawa commented Mar 26, 2022

This PR closes #506.

The default value for controller.status have changed from "" to None.
This is not an essential change, but for improvement of readability.

On the other hand, the behaviour of numerous functions which requires controlling authority is changed.
Currently those functions return empty string "" (via deco_check decorator), which causes confusing error messages like AttributeError: 'str' object has no attribute '**'.
This PR proposes such operation to raise a custom error NECSTAuthorityError to give understandable error messages. This can break functions which expect the empty string as a sign for authority error, but such functions should use try...except statements.

@KaoruNishikawa KaoruNishikawa self-assigned this Mar 26, 2022
@KaoruNishikawa KaoruNishikawa marked this pull request as draft March 26, 2022 09:46
This is a workaround regarding Poetry's bug. If there are two identically constrained version specification, Poetry attempts to resolve dependency versions for every constraints combination, even if there's no intersection, which raises SolverProblemError. This behaviour isn't fixed yet but tracked in <python-poetry/poetry#3367> and will be resolved in <python-poetry/poetry#4695>.
@KaoruNishikawa KaoruNishikawa marked this pull request as ready for review March 28, 2022 08:13
@KaoruNishikawa
Copy link
Contributor Author

Installation script install.sh now supports Pipenv for global environment management.

@r-yamada1998 r-yamada1998 merged commit b50ee48 into master Mar 29, 2022
@r-yamada1998 r-yamada1998 deleted the #506-controller branch March 29, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Observation scripts exits with AttributeError
2 participants