mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	stop CI failing
This commit is contained in:
		@@ -193,9 +193,10 @@ class Plugins:
 | 
			
		||||
                    # option1: package, option2: file-based
 | 
			
		||||
                    if (plugin.__name__ == disabled) or (plugin.__module__ == disabled):
 | 
			
		||||
                        # errors are bad so disable the plugin in the database
 | 
			
		||||
                        plugin_db_setting.active = False
 | 
			
		||||
                        # TODO save the error to the plugin
 | 
			
		||||
                        plugin_db_setting.save(no_reload=True)
 | 
			
		||||
                        if not settings.PLUGIN_TESTING:
 | 
			
		||||
                            plugin_db_setting.active = False
 | 
			
		||||
                            # TODO save the error to the plugin
 | 
			
		||||
                            plugin_db_setting.save(no_reload=True)
 | 
			
		||||
 | 
			
		||||
                        # add to inactive plugins so it shows up in the ui
 | 
			
		||||
                        self.plugins_inactive[plug_key] = plugin_db_setting
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user