From 00f47f81815e10e870caac5689e761395037b25d Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 28 Feb 2016 01:57:51 +0100 Subject: [PATCH] core (tools): fixed bad call to "hg id" when hg is not working to guest revision, which was the cause of an Exception --- src/tools/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/utils.py b/src/tools/utils.py index 9e63eb83..dbbcff3b 100644 --- a/src/tools/utils.py +++ b/src/tools/utils.py @@ -80,10 +80,10 @@ def getRepositoryData(module, as_string=True): hg_data = {} else: hg_data = dict(zip(KEYS, hg_data_raw.split('\n'))) - try: - hg_data['modified'] = '+' in subprocess.check_output(["hg","id","-i"]) - except subprocess.CalledProcessError: - pass + try: + hg_data['modified'] = '+' in subprocess.check_output(["hg","id","-i"]) + except subprocess.CalledProcessError: + pass else: hg_data = {}