YchKhan commited on
Commit
0dea696
1 Parent(s): 4f098e8

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'], 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'], str(e)
20
 
21
  # print(scope.keys())
22
  if 'new_df' not in scope: