prevent crash when a plugin is wrong.
This commit is contained in:
		
							parent
							
								
									7a4161c759
								
							
						
					
					
						commit
						4a151d1370
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -480,10 +480,8 @@ class PluginManager(metaclass=Singleton): | |||
|                 continue | ||||
|             try: | ||||
|                 module = __import__(module_name) | ||||
|             except ValueError as value_error: | ||||
|                 log.debug(str(value_error)) | ||||
|             except ImportError as import_error: | ||||
|                 log.debug(str(import_error)) | ||||
|             except (ValueError, ImportError, AttributeError) as error: | ||||
|                 log.debug(str(error)) | ||||
| 
 | ||||
|             if module is None: | ||||
|                 continue | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue