Fix : tisbackup_gui crash if there isn't database provided

This commit is contained in:
ssamson-tis 2015-07-10 15:36:13 +02:00
parent 306bcfd8db
commit dea1df94b8

View File

@ -129,7 +129,7 @@ def read_config():
db_name = row['db_name']
backup_dict['pgsql_list'].append([server_name, backup_name, backup_type, db_name])
if backup_type == "mysql+ssh":
db_name = row['db_name']
db_name = row.get('db_name', '*')
backup_dict['mysql_list'].append([server_name, backup_name, backup_type, db_name])
if backup_type == "sqlserver+ssh":
db_name = row['db_name']