P01yH3dr0n commited on
Commit
c33c656
1 Parent(s): 8b8b49a
Files changed (1) hide show
  1. pnginfo.py +2 -1
pnginfo.py CHANGED
@@ -128,9 +128,10 @@ def read_stealth_info(image):
128
  else:
129
  decoded_data = byte_data.decode('utf-8', errors='ignore')
130
  geninfo = decoded_data
 
131
  except:
132
  pass
133
- return json.loads(geninfo)
134
 
135
  def read_info_from_image(image):
136
  if image is None:
 
128
  else:
129
  decoded_data = byte_data.decode('utf-8', errors='ignore')
130
  geninfo = decoded_data
131
+ return json.loads(geninfo)
132
  except:
133
  pass
134
+ return {}
135
 
136
  def read_info_from_image(image):
137
  if image is None: