Browse Source
			
			
			Fixed error message
			
				Current error message can throw off users. Should be good now.
			
			
				pull/62/head
			
			
		 
		
			
				
					
						 Antonio Fernandez
					
					5 years ago
						Antonio Fernandez
					
					5 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					wg_dashboard_backend/main.py
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -44,12 +44,12 @@ _db: Session = SessionLocal() | 
			
		
	
		
			
				
					|  |  |  | if not database_exists(engine.url): | 
			
		
	
		
			
				
					|  |  |  |     ADMIN_USERNAME = os.getenv("ADMIN_USERNAME") | 
			
		
	
		
			
				
					|  |  |  |     if not ADMIN_USERNAME: | 
			
		
	
		
			
				
					|  |  |  |         raise RuntimeError("Database does not exist and the environment variable ADMIN_USERNAME is set") | 
			
		
	
		
			
				
					|  |  |  |         raise RuntimeError("Database does not exist and the environment variable ADMIN_USERNAME is not set") | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     ADMIN_PASSWORD = os.getenv("ADMIN_PASSWORD") | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     if not ADMIN_PASSWORD: | 
			
		
	
		
			
				
					|  |  |  |         raise RuntimeError("Database does not exist and the environment variable ADMIN_PASSWORD is set") | 
			
		
	
		
			
				
					|  |  |  |         raise RuntimeError("Database does not exist and the environment variable ADMIN_PASSWORD is not set") | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     # Create database from metadata | 
			
		
	
		
			
				
					|  |  |  |     models.Base.metadata.create_all(engine) | 
			
		
	
	
		
			
				
					|  |  | 
 |