specify module version before importing
This commit is contained in:
		
							parent
							
								
									a617007c78
								
							
						
					
					
						commit
						ef5096b24a
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -25,6 +25,7 @@
 | 
			
		|||
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
import gi
 | 
			
		||||
from gi.repository import Gtk
 | 
			
		||||
import gtkgui_helpers
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -194,6 +195,7 @@ class FeaturesWindow:
 | 
			
		|||
        if kwalletbinding.kwallet_available():
 | 
			
		||||
            return True
 | 
			
		||||
        try:
 | 
			
		||||
            gi.require_version('GnomeKeyring', '1.0')
 | 
			
		||||
            from gi.repository import GnomeKeyring
 | 
			
		||||
        except Exception:
 | 
			
		||||
            return False
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue