io.log_info instead of print

This commit is contained in:
Jan 2021-12-05 11:09:47 +01:00
commit e754bf5bd6

View file

@ -522,7 +522,7 @@ class ModelBase(object):
with open(fun(), 'w') as file:
yaml.dump(saving_dict, file, sort_keys=False)
except OSError as exception:
print('Impossible to write YAML configuration file -> ', exception)
io.log_info('Impossible to write YAML configuration file -> ', exception)
def create_backup(self):
io.log_info ("Creating backup...", end='\r')