wavexx / screenkey

A screencast tool to display your keys inspired by Screenflick
https://www.thregr.org/~wavexx/software/screenkey/
GNU General Public License v3.0
757 stars 66 forks source link

Fix exception if no state can be loaded. #7

Closed seletskiy closed 9 years ago

seletskiy commented 9 years ago

Without it crashes with following:

Traceback (most recent call last):
  File "./screenkey", line 100, in <module>
    main()
  File "./screenkey", line 92, in main
    sc.Screenkey(logger=logger, options=options, show_settings=args.show_settings)
  File "/home/s.seletskiy/sources/screenkey-wavxx/Screenkey/screenkey.py", line 87, in __init__
    self.options = self.load_state()
  File "/home/s.seletskiy/sources/screenkey-wavxx/Screenkey/screenkey.py", line 163, in load_state
    if options.key_mode == 'normal':
AttributeError: 'NoneType' object has no attribute 'key_mode'
seletskiy commented 9 years ago

BTW, glad to see real screenkey improvement fork! I did it by myself, but was too lazy for rewrite. :+1:

wavexx commented 9 years ago

Damn, just released 0.6 :/

Yeah, I started merging the available patches around, but then so many issues popped up... Thing is, screenkey is a really useful tool. It's a shame it wasn't maintained anymore.