From abf4511f870430bb6c56946f0549fe17ca1616cd 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 9a463fdfb..660c052e8 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 -