mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Microdecision : bug in get_file_diff following refactoring ...
This commit is contained in:
parent
cc6819691f
commit
2adc80f8db
1 changed files with 2 additions and 2 deletions
|
@ -733,9 +733,9 @@ def _get_files_diff(orig_file, new_file, as_string=False, skip_header=True):
|
|||
else:
|
||||
orig_file = []
|
||||
|
||||
if not os.path.exists(new_file):
|
||||
if os.path.exists(new_file):
|
||||
with open(new_file, 'r') as new_file:
|
||||
new_file.readlines()
|
||||
new_file = new_file.readlines()
|
||||
else:
|
||||
new_file = []
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue