Skip to content

Commit

Permalink
refactor: do not add DEBUG env var when it is not set (#6690)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww authored Feb 11, 2025
1 parent 425ccc9 commit a371562
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions openhands/runtime/impl/remote/remote_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,9 @@ def _start_runtime(self):
plugins=self.plugins,
app_config=self.config,
)
environment = {
'DEBUG': 'true'
if self.config.debug or os.environ.get('DEBUG', 'false').lower() == 'true'
else '',
}
environment = {}
if self.config.debug or os.environ.get('DEBUG', 'false').lower() == 'true':
environment['DEBUG'] = 'true'
environment.update(self.config.sandbox.runtime_startup_env_vars)
start_request = {
'image': self.container_image,
Expand Down

0 comments on commit a371562

Please sign in to comment.