YchKhan commited on
Commit
009a8a8
1 Parent(s): 0ce495e

Update code_df_custom.py

Browse files
Files changed (1) hide show
  1. code_df_custom.py +1 -1
code_df_custom.py CHANGED
@@ -16,7 +16,7 @@ def run_code(file, code):
16
  exec(code, scope, scope)
17
  except Exception as e:
18
  scope['new_df'] = df
19
- return scope['new_df'], str(e)
20
 
21
  # print(scope.keys())
22
  if 'new_df' not in scope:
 
16
  exec(code, scope, scope)
17
  except Exception as e:
18
  scope['new_df'] = df
19
+ return scope['new_df'], f"# ERROR: {str(e)}"
20
 
21
  # print(scope.keys())
22
  if 'new_df' not in scope: