Fixed some flake8 warnings
This commit is contained in:
		
					parent
					
						
							
								a4fe2e2db9
							
						
					
				
			
			
				commit
				
					
						5c3cf7682f
					
				
			
		
					 4 changed files with 5 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -115,8 +115,8 @@ class CeleryTaskTestCase(TestCase):
 | 
			
		|||
                'response_object').stripe_plan_id}])
 | 
			
		||||
        stripe_subscription_obj = subscription_result.get('response_object')
 | 
			
		||||
        # Check if the subscription was approved and is active
 | 
			
		||||
        if stripe_subscription_obj is None or \
 | 
			
		||||
                        stripe_subscription_obj.status != 'active':
 | 
			
		||||
        if stripe_subscription_obj is None \
 | 
			
		||||
                or stripe_subscription_obj.status != 'active':
 | 
			
		||||
            msg = subscription_result.get('error')
 | 
			
		||||
            raise Exception("Creating subscription failed: {}".format(msg))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue