Check that etag exists

merge-requests/30/head
Bob Mottram 2021-08-11 20:48:13 +01:00
parent ef108494b6
commit e1bb1b885e
1 changed files with 1 additions and 1 deletions

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