From 1acd60d7f2307ab766c192fcbe436fe43e75c533 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 26 Oct 2015 14:04:01 -0700 Subject: [PATCH] Fix undefined variable error. --- gramps/gen/plug/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/plug/utils.py b/gramps/gen/plug/utils.py index 0b704e4bf..8a76eea5b 100644 --- a/gramps/gen/plug/utils.py +++ b/gramps/gen/plug/utils.py @@ -175,6 +175,7 @@ class Zipfile(object): def available_updates(): whattypes = config.get('behavior.check-for-update-types') + context = None from urllib.request import urlopen if mac(): from ssl import create_default_context, CERT_NONE @@ -430,4 +431,3 @@ class OpenFileOrStdin: if self.filename != '-': self.filehandle.close() return False -