Skip to content

Closing the save image dialogue without saving the image crashes the program #8

Open
@atomflunder

Description

@atomflunder

Steps to reproduce:

  1. Open either Top 8 or Thumbnail generator
  2. Hit "Save Image"
  3. Close the following dialogue box by hitting the X or Cancel without saving

Error message:

Traceback (most recent call last):
  File "C:\Users\myname\Documents\Python\GraphicAssembler\graphics\ui\widgets\SaveImageButton.py", line 37, in button_handler
    image.save(path[0], format="PNG")
  File "C:\Users\myname\Documents\Python\GraphicAssembler\venv\Lib\site-packages\PIL\Image.py", line 2428, in save
    fp = builtins.open(filename, "w+b")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions