Removed unncessary check for error for make_charge
This commit is contained in:
		
					parent
					
						
							
								4cc2e09b0a
							
						
					
				
			
			
				commit
				
					
						6484684ac5
					
				
			
		
					 3 changed files with 67 additions and 35 deletions
				
			
		| 
						 | 
				
			
			@ -93,7 +93,7 @@ class CeleryTaskTestCase(TestCase):
 | 
			
		|||
 | 
			
		||||
        # Check if the payment was approved
 | 
			
		||||
        if not charge_response.get(
 | 
			
		||||
                'response_object') and not charge_response.get('paid'):
 | 
			
		||||
                'response_object'):
 | 
			
		||||
            msg = charge_response.get('error')
 | 
			
		||||
            raise Exception("make_charge failed: {}".format(msg))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue