mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-22 00:11:03 +01:00
Removed unnecessary warning
This commit is contained in:
parent
bb3d20c424
commit
75d48fb3e9
@ -93,10 +93,6 @@ def backup_database(container, volume_dir, db_type):
|
|||||||
# Filter the DataFrame for the given instance_name
|
# Filter the DataFrame for the given instance_name
|
||||||
database_entries = DATABASES.loc[DATABASES['instance'] == 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
|
# Check if there is no entry
|
||||||
if database_entries.empty:
|
if database_entries.empty:
|
||||||
raise BackupException(f"No entry found for instance '{instance_name}'")
|
raise BackupException(f"No entry found for instance '{instance_name}'")
|
||||||
|
Loading…
Reference in New Issue
Block a user