Gurdil / pywo

Automatically exported from code.google.com/p/pywo
GNU General Public License v3.0
0 stars 0 forks source link

Non-helpful backtrace on syntax error in config file. #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an error in editing the keys section in the config file
2. Start pywo
3.

What is the expected output?

I would like to see a sensible description about the (syntax?) error made, at 
least a hint about the line that is wrong in the config file.

What do you see instead?

Invalid key for section <pywo.config.Section object at 0x97b158c>
Traceback (most recent call last):
  File "/home/mp26/tmp/pywo-read-only/pywo/services/keyboard_service.py", line 77, in set_config
    (mod, keycode) = WM.str2modifiers_keycode(mask, key)
  File "/home/mp26/tmp/pywo-read-only/pywo/core/xlib.py", line 255, in str2modifiers_keycode
    keycode = cls.str2keycode(key)
  File "/home/mp26/tmp/pywo-read-only/pywo/core/xlib.py", line 230, in str2keycode
    raise ValueError('No key specified!')
ValueError: No key specified!

What version of the product are you using? On what operating system?

current svn

Please provide any additional information below.

Original issue reported on code.google.com by Martin.P...@gmail.com on 20 Mar 2014 at 9:58