~ruther/guix-local

ref: 0a5ce0d1df3befa2c4e018e84da3bd66c9eac48d guix-local/gnu/packages/patches/multiqc-fix-git-subprocess-error.patch -rw-r--r-- 620 bytes
0a5ce0d1 — Huang Ying profiles: Create fonts.dir/scale for all fonts directories. 9 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Without this patch, the incorrect exception is caught when 'git' is not in
PATH.  See https://github.com/ewels/MultiQC/pull/377.

diff --git a/multiqc/utils/config.py b/multiqc/utils/config.py
index 01fa554..4a11793 100755
--- a/multiqc/utils/config.py
+++ b/multiqc/utils/config.py
@@ -28,7 +28,7 @@ try:
     git_hash = subprocess.check_output(['git', 'rev-parse', 'HEAD'], stderr=subprocess.STDOUT)
     git_hash_short = git_hash[:7]
     version = '{} ({})'.format(version, git_hash_short)
-except subprocess.CalledProcessError:
+except (subprocess.CalledProcessError, FileNotFoundError):
     pass
 os.chdir(cwd)