From 3a2a29a1aa2fbafe6ea482d190c8692b77f82a68 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 26 Dec 2018 22:54:19 +0100 Subject: [PATCH] deploy-ng: catch more egg2bam errors with Python 2.7 --- direct/src/dist/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index ec69bf996f..649b95c2f1 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -65,7 +65,7 @@ def egg2bam(_build_cmd, srcpath, dstpath): ]) except FileNotFoundError: raise RuntimeError('egg2bam failed: egg2bam was not found in the PATH') - except subprocess.CalledProcessError as err: + except (subprocess.CalledProcessError, OSError) as err: raise RuntimeError('egg2bam failed: {}'.format(err)) return dstpath