Do not fail on empty sources section in .abf.yml

This commit is contained in:
Denis Silakov 2019-08-22 16:11:41 +03:00
parent 9b02010a8e
commit d3744255dc

View file

@ -565,6 +565,8 @@ def upload_files(models, min_size, path=None, remove_files=True, upload_all=Fals
yaml_file_changed = True
continue
sha_hash = models.jsn.upload_file(source)
if not yaml_files:
yaml_files = {}
if src not in yaml_files or sha_hash != yaml_files[src]:
log.debug(_('Hash for file %s has been updated') % src)