[fix] Microdecision : bug in get_file_diff following refactoring ...

This commit is contained in:
Alexandre Aubin 2018-06-11 16:18:38 +02:00
parent cc6819691f
commit 2adc80f8db

View file

@ -733,9 +733,9 @@ def _get_files_diff(orig_file, new_file, as_string=False, skip_header=True):
else: else:
orig_file = [] orig_file = []
if not os.path.exists(new_file): if os.path.exists(new_file):
with open(new_file, 'r') as new_file: with open(new_file, 'r') as new_file:
new_file.readlines() new_file = new_file.readlines()
else: else:
new_file = [] new_file = []