mirror of
https://github.com/bryangerlach/rdgen.git
synced 2025-11-29 08:33:23 +00:00
v1.3.8
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user