mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
btlog: fix bug with first run, the etag variable needs to exist
This commit is contained in:
parent
4e4c6d9acf
commit
5020f70997
1 changed files with 1 additions and 0 deletions
|
|
@ -199,6 +199,7 @@ def main():
|
||||||
headers = {
|
headers = {
|
||||||
'User-Agent': 'F-Droid 0.102.3'
|
'User-Agent': 'F-Droid 0.102.3'
|
||||||
}
|
}
|
||||||
|
etag = None
|
||||||
if os.path.exists(http_headers_file):
|
if os.path.exists(http_headers_file):
|
||||||
with open(http_headers_file) as fp:
|
with open(http_headers_file) as fp:
|
||||||
etag = json.load(fp)['ETag']
|
etag = json.load(fp)['ETag']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue