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

sr3 status crashes: if len(self.states[c][cfg]['instance_pids']) >= 0: KeyError: 'instance_pids' #724

Closed
petersilva opened this issue Jul 23, 2023 · 1 comment
Assignees
Labels
bug Something isn't working likely-fixed likely fix is in the repository, success not confirmed yet. Priority 5 - Defect Missing and/or broken functionality - do not forget v3only Only affects v3 branches. v3 issue deferred to or affects version 3

Comments

@petersilva
Copy link
Contributor

no sr3 commands complete when some status files are missing:


fractal% sr3 status
Traceback (most recent call last):
  File "/home/peter/.local/bin/sr3", line 33, in <module>
    sys.exit(load_entry_point('metpx-sr3', 'console_scripts', 'sr3')())
  File "/home/peter/Sarracenia/sr3/sarracenia/sr.py", line 2610, in main
    gs = sr_GlobalState(cfg, cfg.configurations)
  File "/home/peter/Sarracenia/sr3/sarracenia/sr.py", line 1109, in __init__
    self._resolve()
  File "/home/peter/Sarracenia/sr3/sarracenia/sr.py", line 871, in _resolve
    if len(self.states[c][cfg]['instance_pids']) >= 0:
KeyError: 'instance_pids'

@petersilva petersilva added bug Something isn't working Priority 5 - Defect Missing and/or broken functionality - do not forget v3 issue deferred to or affects version 3 v3only Only affects v3 branches. labels Jul 23, 2023
@petersilva petersilva self-assigned this Jul 27, 2023
@petersilva petersilva added the likely-fixed likely fix is in the repository, success not confirmed yet. label Jul 27, 2023
@petersilva
Copy link
Contributor Author

PR #725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working likely-fixed likely fix is in the repository, success not confirmed yet. Priority 5 - Defect Missing and/or broken functionality - do not forget v3only Only affects v3 branches. v3 issue deferred to or affects version 3
Projects
None yet
Development

No branches or pull requests

1 participant