fix: fix 'broad-exception-caught' for pylint
This commit is contained in:
		
							parent
							
								
									c3e262804c
								
							
						
					
					
						commit
						a56f6e9b91
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -7,4 +7,3 @@ disable=fixme,
 | 
			
		|||
        arguments-differ,
 | 
			
		||||
        arguments-renamed,
 | 
			
		||||
        attribute-defined-outside-init,
 | 
			
		||||
        broad-exception-caught,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -256,7 +256,7 @@ class OrderView(MasterView):  # pylint: disable=too-many-public-methods
 | 
			
		|||
            if action in json_actions:
 | 
			
		||||
                try:
 | 
			
		||||
                    result = getattr(self, action)(batch, data)
 | 
			
		||||
                except Exception as error:
 | 
			
		||||
                except Exception as error:  # pylint: disable=broad-exception-caught
 | 
			
		||||
                    log.warning("error calling json action for order", exc_info=True)
 | 
			
		||||
                    result = {"error": self.app.render_error(error)}
 | 
			
		||||
                return self.json_response(result)
 | 
			
		||||
| 
						 | 
				
			
			@ -820,7 +820,7 @@ class OrderView(MasterView):  # pylint: disable=too-many-public-methods
 | 
			
		|||
 | 
			
		||||
        try:
 | 
			
		||||
            order = self.batch_handler.do_execute(batch, user)
 | 
			
		||||
        except Exception as error:
 | 
			
		||||
        except Exception as error:  # pylint: disable=broad-exception-caught
 | 
			
		||||
            log.warning("failed to execute new order batch: %s", batch, exc_info=True)
 | 
			
		||||
            return {"error": self.app.render_error(error)}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue