https://github.com/aiidateam/aiida_core
Revision 861a39f268954833385e699b3acbd092ccd04e5e authored by Sebastiaan Huber on 26 October 2020, 15:40:42 UTC, committed by GitHub on 26 October 2020, 15:40:42 UTC
If `click.edit` returns a falsy value, the following conditional would be skipped and the `value` variable would be undefined causing an `UnboundLocalError` to be raised. This bug was reported by @blokhin but the exact conditions under which it occurred are not clear.
1 parent ee13ad6
Tip revision: 861a39f268954833385e699b3acbd092ccd04e5e authored by Sebastiaan Huber on 26 October 2020, 15:40:42 UTC
Fix `UnboundLocalError` in `aiida.cmdline.utils.edit_multiline_template` (#4436)
Fix `UnboundLocalError` in `aiida.cmdline.utils.edit_multiline_template` (#4436)
Tip revision: 861a39f
File | Mode | Size |
---|---|---|
.ci | ||
.circleci | ||
.docker | ||
.github | ||
aiida | ||
docs | ||
requirements | ||
tests | ||
utils | ||
.coveragerc | -rw-r--r-- | 59 bytes |
.gitignore | -rw-r--r-- | 406 bytes |
.pre-commit-config.yaml | -rw-r--r-- | 3.1 KB |
.readthedocs.yml | -rw-r--r-- | 756 bytes |
.style.yapf | -rw-r--r-- | 232 bytes |
AUTHORS.txt | -rw-r--r-- | 1.7 KB |
CHANGELOG.md | -rw-r--r-- | 79.8 KB |
CODE_OF_CONDUCT.md | -rw-r--r-- | 3.3 KB |
Dockerfile | -rw-r--r-- | 578 bytes |
LICENSE.txt | -rw-r--r-- | 1.3 KB |
MANIFEST.in | -rw-r--r-- | 191 bytes |
README.md | -rw-r--r-- | 5.5 KB |
codecov.yml | -rw-r--r-- | 327 bytes |
environment.yml | -rw-r--r-- | 745 bytes |
mypy.ini | -rw-r--r-- | 805 bytes |
open_source_licenses.txt | -rw-r--r-- | 15.3 KB |
pyproject.toml | -rw-r--r-- | 3.1 KB |
setup.json | -rw-r--r-- | 9.2 KB |
setup.py | -rw-r--r-- | 1.8 KB |
Computing file changes ...