From f2112d102d08a28dd1e6d03aa896a9ca030952ac Mon Sep 17 00:00:00 2001 From: Christophe Mehay Date: Mon, 29 Apr 2019 10:40:39 +0200 Subject: [PATCH 1/2] Check if var in env before delete it --- pyentrypoint/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyentrypoint/command.py b/pyentrypoint/command.py index e0f747b..71e43d6 100755 --- a/pyentrypoint/command.py +++ b/pyentrypoint/command.py @@ -66,7 +66,8 @@ class Command(object): to_del.append(key) for item in to_del: - del(self.env[item]) + if item in self.env: + del(self.env[item]) @property def is_handled(self): From d1dd6058e9ede082937db99c0f22373875c3296f Mon Sep 17 00:00:00 2001 From: Christophe Mehay Date: Mon, 29 Apr 2019 11:25:17 +0200 Subject: [PATCH 2/2] exit 1 on error --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b6c04d9..920e9d5 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup # Thanks Sam and Max -__version__ = '0.5.1' +__version__ = '0.5.2' if __name__ == '__main__': setup(