better catch tkinter import
This commit is contained in:
		
							parent
							
								
									0106721cd0
								
							
						
					
					
						commit
						da3e0fdc4e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -23,7 +23,7 @@ import logger, config, sys | |||
| from onionrblockapi import Block | ||||
| try: | ||||
|     import tkinter | ||||
| except (ModuleNotFoundError, ImportError) as e: | ||||
| except (ModuleNotFoundError, ImportError, NameError) as e: | ||||
|     TK_ENABLED = False | ||||
| else: | ||||
|     TK_ENABLED = True | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue