Less indentation

merge-requests/30/head
Bob Mottram 2021-12-16 22:21:16 +00:00
parent d5806b1e28
commit f9bbfdd8cd
1 changed files with 25 additions and 23 deletions

View File

@ -7413,7 +7413,9 @@ class PubServer(BaseHTTPRequestHandler):
""" """
mediaFilename = baseDir + urllib.parse.unquote_plus(path) mediaFilename = baseDir + urllib.parse.unquote_plus(path)
print('showCachedFavicon: ' + mediaFilename) print('showCachedFavicon: ' + mediaFilename)
if os.path.isfile(mediaFilename): if not os.path.isfile(mediaFilename):
self._404()
return
if self._etag_exists(mediaFilename): if self._etag_exists(mediaFilename):
# The file has not changed # The file has not changed
self._304() self._304()