Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

Return key error when wrong profile is specified #25

Open
sotetsuk opened this issue Jul 19, 2018 · 0 comments
Open

Return key error when wrong profile is specified #25

sotetsuk opened this issue Jul 19, 2018 · 0 comments

Comments

@sotetsuk
Copy link
Owner

It should raise error like no such profile.

Traceback (most recent call last):
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/bin/paicli", line 11, in <module>
    sys.exit(main())
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/click-6.7-py3.6.egg/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/click-6.7-py3.6.egg/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/click-6.7-py3.6.egg/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/click-6.7-py3.6.egg/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/click-6.7-py3.6.egg/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/paicli/main.py", line 86, in sshcmd
    _load(config)
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/paicli/main.py", line 34, in _load
    config.load()
  File "/home/sotetsuk/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/paicli/config.py", line 56, in load
    self.host = config[self.profile]["host"]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant