Check that etag exists

This commit is contained in:
bashrc committed 2021-08-11 20:48:13 +01:00
1 parent ef108494b6
commit e1bb1b885e
1 file changed
+1 -1
+1 -1
View File
@@ -762,7 +762,7 @@ class PubServer(BaseHTTPRequestHandler):
currEtag = etagFile.read()
except BaseException:
pass
if oldEtag == currEtag:
if currEtag and oldEtag == currEtag:
# The file has not changed
return True
return False