mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
tries to print debugging info for agentskills
This commit is contained in:
@@ -85,6 +85,12 @@ def update_pwd_decorator(func):
|
||||
os.chdir(jupyter_pwd)
|
||||
try:
|
||||
return func(*args, **kwargs)
|
||||
except Exception as e:
|
||||
print(f'Failed to execute function {func.__name__}: {e}')
|
||||
# Print debugging info
|
||||
print(f'Current user: {os.getlogin()}')
|
||||
print(f'Current IPython working directory: {os.getcwd()}')
|
||||
raise e
|
||||
finally:
|
||||
os.chdir(old_pwd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user