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

Will not die when wrong theme is being loaded #7

Closed
lunemec opened this issue Jul 8, 2015 · 2 comments
Closed

Will not die when wrong theme is being loaded #7

lunemec opened this issue Jul 8, 2015 · 2 comments

Comments

@lunemec
Copy link

lunemec commented Jul 8, 2015

$ ptop -t 232323
Traceback (most recent call last):
  File "/usr/bin/ptop", line 9, in <module>
    load_entry_point('ptop==0.0.6', 'console_scripts', 'ptop')()
  File "/usr/lib/python2.7/site-packages/ptop/main.py", line 48, in main
    app.run()
  File "/usr/lib/python2.7/site-packages/npyscreen/apNPSApplication.py", line 30, in run
    return npyssafewrapper.wrapper(self.__remove_argument_call_main)
  File "/usr/lib/python2.7/site-packages/npyscreen/npyssafewrapper.py", line 41, in wrapper
    wrapper_no_fork(call_function)
  File "/usr/lib/python2.7/site-packages/npyscreen/npyssafewrapper.py", line 97, in wrapper_no_fork
    return_code = call_function(_SCREEN)    
  File "/usr/lib/python2.7/site-packages/npyscreen/apNPSApplication.py", line 25, in __remove_argument_call_main
    return self.main()
  File "/usr/lib/python2.7/site-packages/ptop/interfaces/GUI.py", line 239, in main
    npyscreen.setTheme(self.get_theme())
  File "/usr/lib/python2.7/site-packages/ptop/interfaces/GUI.py", line 118, in get_theme
    return self.themes[self.arg]
KeyError: '232323'

Ctrl+c doesn't work, nothing does, you need to restart the terminal entirely.

@darxtrix
Copy link
Owner

darxtrix commented Jul 8, 2015

#6 will take care of this.

@darxtrix darxtrix added the bug label Jul 8, 2015
@darxtrix
Copy link
Owner

Yes, it's a different issue with CTRL+Z being only useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants