chiark / gitweb /
Fix crash in checkupdates with auto-updates
[fdroidserver.git] / fdroidserver / checkupdates.py
index ae185350bc378737784977248793f54b051de5d7..83604f6f17b0ee42c9ce0d84f50b6ec31c462a0c 100644 (file)
@@ -491,7 +491,8 @@ def main():
 
                 if not gotcur:
                     newbuild = latest.copy()
-                    del newbuild['origlines']
+                    if 'origlines' in newbuild:
+                        del newbuild['origlines']
                     newbuild['disable'] = False
                     newbuild['vercode'] = app['Current Version Code']
                     newbuild['version'] = app['Current Version'] + suffix