multiSnow / mcomix3

End of Fork
Other
97 stars 39 forks source link

ignore missing 'scaling quality' in old preferences #126

Closed con-f-use closed 3 years ago

con-f-use commented 3 years ago

Fixes the following problem, which occurs in some configuration circumstances:

Traceback (most recent call last):
  File "/nix/store/k4bvykaynrhhm8zp6y4c0ib3qa7ikcjg-mcomix3-1.2.1+gc5afd370/bin/.mcomixstarter.py-wrapped", line 34, in <module>
    mcomix.run.run()
  File "/nix/store/k4bvykaynrhhm8zp6y4c0ib3qa7ikcjg-mcomix3-1.2.1+gc5afd370/bin/mcomix/run.py", line 92, in run
    preferences.read_preferences_file()
  File "/nix/store/k4bvykaynrhhm8zp6y4c0ib3qa7ikcjg-mcomix3-1.2.1+gc5afd370/bin/mcomix/preferences.py", line 170, in read_preferences_file
    check_old_preferences(saved_prefs)
  File "/nix/store/k4bvykaynrhhm8zp6y4c0ib3qa7ikcjg-mcomix3-1.2.1+gc5afd370/bin/mcomix/preferences.py", line 147, in check_old_preferences
    if saved_prefs['scaling quality']==3:
KeyError: 'scaling quality'