[misc] handle gnome-heyring DeniedError. Fix #3300.
This commit is contained in:
		
							parent
							
								
									21269c175a
								
							
						
					
					
						commit
						ecc54114f7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -111,6 +111,8 @@ def get_storage():
 | 
			
		|||
				storage = GnomePasswordStorage()
 | 
			
		||||
			except gnomekeyring.NoKeyringDaemonError:
 | 
			
		||||
				storage = SimplePasswordStorage()
 | 
			
		||||
			except gnomekeyring.DeniedError:
 | 
			
		||||
				storage = SimplePasswordStorage()
 | 
			
		||||
		else:
 | 
			
		||||
			storage = SimplePasswordStorage()
 | 
			
		||||
	return storage
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue