cleanup and fixes

This commit is contained in:
Aaron Kimbre
2022-04-03 11:35:53 -05:00
parent 1113295c5b
commit f1d79f1e90
2 changed files with 4 additions and 9 deletions

View File

@@ -76,7 +76,10 @@ def get_icon_lot(id):
one=True
)[0]
filename = filename.replace("..\\", "").replace("\\", "/")
if filename:
filename = filename.replace("..\\", "").replace("\\", "/")
else:
return redirect(url_for('luclient.unknown'))
cache = f'app/cache/{filename.split(".")[0]}.png'