diff --git a/source/carla_backend.py b/source/carla_backend.py index a75524a80..89dbb2539 100644 --- a/source/carla_backend.py +++ b/source/carla_backend.py @@ -1348,7 +1348,8 @@ class CarlaHostMeta(QObject): # unset environment variable def unsetenv(self, key): - environ.pop(key) + if environ.get(key) is not None: + environ.pop(key) if WINDOWS: keyrm = "%s=" % key