Less indentation

merge-requests/30/head
Bob Mottram 2021-12-06 10:21:37 +00:00
parent f54112a15c
commit 88cc541f59
1 changed files with 47 additions and 45 deletions

View File

@ -7299,7 +7299,9 @@ class PubServer(BaseHTTPRequestHandler):
baseDir: str, GETstartTime) -> None:
"""Shows an icon
"""
if path.endswith('.png'):
if not path.endswith('.png'):
self._404()
return
mediaStr = path.split('/icons/')[1]
if '/' not in mediaStr:
if not self.server.themeName: