ahrm / UnstableFusion

A Stable Diffusion desktop frontend with inpainting, img2img and more!
GNU General Public License v3.0
1.26k stars 86 forks source link

Crash when loading modifiers without previously saving them #22

Closed ZapExp closed 2 years ago

ZapExp commented 2 years ago

If you click the "Load Modifiers" button before saving them the app crashes, I got the following error in console:

Traceback (most recent call last):
  File "C:\Users\davic\Desktop\AI\UnstableFusion\unstablefusion.py", line 1129, in handle_load_modifiers
    mods = load_modifiers()
  File "C:\Users\davic\Desktop\AI\UnstableFusion\unstablefusion.py", line 51, in load_modifiers
    with open(get_modifiers_path(), 'r') as infile:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\davic\\Desktop\\AI\\UnstableFusion\\modifiers.txt'
ahrm commented 2 years ago

Should be fixed in bd43e1a1b54053746f1ca7ddfa22f65e531adbde.