aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-29 13:08:25 +0300
committerBonfaceKilz2021-06-29 14:50:30 +0300
commita749941443246638df825adb8e9e8886d2ae9535 (patch)
treed040dab1b7cfe22a4fa842dfd0b6061715dde1d5 /gn3/computations
parent14522d155d37f9df14587c23d116248177876df5 (diff)
downloadgenenetwork3-a749941443246638df825adb8e9e8886d2ae9535.tar.gz
gn3: diff: Set success_codes when running the diff tool
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/computations/diff.py b/gn3/computations/diff.py
index b5da68a..4bbc6cf 100644
--- a/gn3/computations/diff.py
+++ b/gn3/computations/diff.py
@@ -6,7 +6,7 @@ from gn3.commands import run_cmd
def generate_diff(data: str, edited_data: str) -> Optional[str]:
"""Generate the diff between 2 files"""
- results = run_cmd(f"diff {data} {edited_data}")
+ results = run_cmd(f"diff {data} {edited_data}", success_codes=[1, 2])
if results.get("code", -1) > 0:
return results.get("output")
return None