Fix mismatch between file opening behavior of Open dialog vs CLI arg

This commit is contained in:
Isaiah Odhner 2023-04-20 14:51:06 -04:00
parent c3763523bd
commit 56ad762819

View File

@ -1253,7 +1253,7 @@ class PaintApp(App):
content = f.read() # f is out of scope in go_ahead()
def go_ahead():
try:
new_image = AnsiArtDocument.from_ansi(content)
new_image = AnsiArtDocument.from_text(content)
except Exception as e:
# "This is not a valid bitmap file, or its format is not currently supported."
# string from MS Paint doesn't apply well here,