diff --git a/keyring/backends/Gnome.py b/keyring/backends/Gnome.py
index <HASH>..<HASH> 100644
--- a/keyring/backends/Gnome.py
+++ b/keyring/backends/Gnome.py
@@ -28,7 +28,7 @@ class Keyring(KeyringBackend):
     def priority(cls):
         if 'gnomekeyring' not in globals():
             raise RuntimeError("gnomekeyring module required")
-        if not Repository.get_default().enumerate_versions('GnomeKeyring'):
+        if not gi.Repository.get_default().enumerate_versions('GnomeKeyring'):
             raise RuntimeError("No GnomeKeyring repository")
         return int(cls.has_requisite_vars())
Fix NameError in Gnome detection (would have left Gnome disabled in all cases)