mirror of
				https://github.com/kevinveenbirkenbach/docker-volume-backup.git
				synced 2025-11-04 02:27:56 +00:00 
			
		
		
		
	Removed unnecessary warning
This commit is contained in:
		@@ -93,10 +93,6 @@ def backup_database(container, volume_dir, db_type):
 | 
			
		||||
    # Filter the DataFrame for the given instance_name
 | 
			
		||||
    database_entries = DATABASES.loc[DATABASES['instance'] == instance_name]
 | 
			
		||||
 | 
			
		||||
    # Check if there are more than one entries
 | 
			
		||||
    if len(database_entries) > 1:
 | 
			
		||||
        raise BackupException(f"More than one entry found for instance '{instance_name}'")
 | 
			
		||||
 | 
			
		||||
    # Check if there is no entry
 | 
			
		||||
    if database_entries.empty:
 | 
			
		||||
        raise BackupException(f"No entry found for instance '{instance_name}'")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user