Skip to content

Commit e59878a

Browse files
xingyaowwadityasoni9998
authored andcommitted
refactor: do not add DEBUG env var when it is not set (All-Hands-AI#6690)
1 parent e2add5c commit e59878a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

openhands/runtime/impl/remote/remote_runtime.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,9 @@ def _start_runtime(self):
212212
plugins=self.plugins,
213213
app_config=self.config,
214214
)
215-
environment = {
216-
'DEBUG': 'true'
217-
if self.config.debug or os.environ.get('DEBUG', 'false').lower() == 'true'
218-
else '',
219-
}
215+
environment = {}
216+
if self.config.debug or os.environ.get('DEBUG', 'false').lower() == 'true':
217+
environment['DEBUG'] = 'true'
220218
environment.update(self.config.sandbox.runtime_startup_env_vars)
221219
start_request = {
222220
'image': self.container_image,

0 commit comments

Comments
 (0)