mirror of https://gitlab.com/bashrc2/epicyon
Check that etag exists
parent
ef108494b6
commit
e1bb1b885e
|
@ -762,7 +762,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
currEtag = etagFile.read()
|
currEtag = etagFile.read()
|
||||||
except BaseException:
|
except BaseException:
|
||||||
pass
|
pass
|
||||||
if oldEtag == currEtag:
|
if currEtag and oldEtag == currEtag:
|
||||||
# The file has not changed
|
# The file has not changed
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue