correctly detect that gtkspell is not installed
This commit is contained in:
		
							parent
							
								
									e2f74117d5
								
							
						
					
					
						commit
						94b8541fdf
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -209,7 +209,7 @@ class FeaturesWindow:
 | 
			
		|||
    def speller_available(self):
 | 
			
		||||
        try:
 | 
			
		||||
            __import__('gtkspell')
 | 
			
		||||
        except ImportError:
 | 
			
		||||
        except ValueError:
 | 
			
		||||
            return False
 | 
			
		||||
        return True
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3022,7 +3022,7 @@ class Interface:
 | 
			
		|||
            try:
 | 
			
		||||
                import gtkspell
 | 
			
		||||
                spell = gtkspell.Spell(tv, lang)
 | 
			
		||||
            except (ImportError, TypeError, RuntimeError, OSError):
 | 
			
		||||
            except (ImportError, TypeError, RuntimeError, OSError, ValueError):
 | 
			
		||||
                dialogs.AspellDictError(lang)
 | 
			
		||||
 | 
			
		||||
        if gajim.config.get('soundplayer') == '':
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue