chiark / gitweb /
btlog: fix bug with first run, the etag variable needs to exist
authorHans-Christoph Steiner <hans@eds.org>
Thu, 6 Apr 2017 21:36:31 +0000 (23:36 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 10 Apr 2017 18:30:13 +0000 (20:30 +0200)
fdroidserver/btlog.py

index 94d4a2cbf8281fde2a65c9ba87ff4472fe6f70db..a5349c6797b0d76294614c84d6a5d22f1285ef3b 100755 (executable)
@@ -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']