From 385fb5df2f7c3ec197b954e8a8ddac5297fe4043 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 12 Jul 2017 08:36:00 +0900 Subject: Imported Upstream version 2.28.0 Change-Id: If251721667bb545804ab96eb17bffb715cd4e832 Signed-off-by: DongHun Kwak --- gi/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gi/__init__.py') diff --git a/gi/__init__.py b/gi/__init__.py index ed20606..314d579 100644 --- a/gi/__init__.py +++ b/gi/__init__.py @@ -32,7 +32,8 @@ def require_version(namespace, version): repository = Repository.get_default() if namespace in repository.get_loaded_namespaces(): - if repository.get_version(namespace) != version: + loaded_version = repository.get_version(namespace) + if loaded_version != version: raise ValueError('Namespace %s is already loaded with version %s' % \ (namespace, loaded_version)) -- cgit v1.2.3