mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +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 = {
|
||||
'User-Agent': 'F-Droid 0.102.3'
|
||||
}
|
||||
etag = None
|
||||
if os.path.exists(http_headers_file):
|
||||
with open(http_headers_file) as fp:
|
||||
etag = json.load(fp)['ETag']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue