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):