Handle Send button error when no image is selected
Add additional check for NoneType in image_from_url_text to catch error caused by clicking "Send" buttons with no image currently selected in the gallery (AttributeError: 'NoneType' object has no attribute 'startswith').
does this improve anything
I guess it's a marginal UX improvement? I just figure a handled exception is better than an unhandled one for something that can come up in normal usage, but it's your call.
in this case filedata is None, there's only one None no need for type comparisons.
if filedata is None:
Ah ok, cool, I wasn't sure since the error mentioned NoneType.
I tried to make the change but I'm new with merges and it looks like I might have messed up the PR lol If the change is wanted and it's possible to fix this PR or if I should just make a new one, lmk
It's a bit of an edge case, but I think the severity of the "ERROR" appearing in 100 places warrants it.
I think this branch is fucked further than warrants a rebase for this size change, I'll close it, feel free to offer it again cleanly.