Skip to content

Commit 542450b

Browse files
authored
Merge pull request #287 from VIPQualityPost/upscaler-fix
fix UnboundLocalError reference before assignment in extras upscaler
2 parents 70f68fd + 81147a4 commit 542450b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/stealth_infotext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ def read_info_from_image_stealth(image):
156156
decoded_data = gzip.decompress(bytes(byte_data)).decode('utf-8')
157157
else:
158158
decoded_data = byte_data.decode('utf-8', errors='ignore')
159-
geninfo = decoded_data
159+
return decoded_data
160160
except:
161161
pass
162-
return geninfo

0 commit comments

Comments
 (0)