This commit is contained in:
Bryan Gerlach
2025-02-24 12:22:03 -06:00
parent 80fc9f6a84
commit ca0d321873

View File

@@ -82,6 +82,7 @@ class GenerateForm(forms.Form):
def clean_iconfile(self): def clean_iconfile(self):
print("checking icon") print("checking icon")
image = self.cleaned_data['iconfile'] image = self.cleaned_data['iconfile']
if image:
try: try:
# Open the image using Pillow # Open the image using Pillow
img = Image.open(image) img = Image.open(image)