Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Fix image path bug #16

Open
freedomofkeima opened this issue Jan 31, 2020 · 0 comments
Open

Fix image path bug #16

freedomofkeima opened this issue Jan 31, 2020 · 0 comments
Labels

Comments

@freedomofkeima
Copy link
Owner

Image path might be None:

if 'png' in image_path:
image_type = "image/png"
elif 'jpg' or 'jpeg' in image_path:
image_type = "image/jpeg"
else:
image_type = None

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant