razaali10 commited on
Commit
f1603de
·
verified ·
1 Parent(s): 9df58fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -33,10 +33,9 @@ def run_hardy_cross(file, loops_json, max_iterations, tolerance):
33
  plot_path
34
  )
35
  except Exception as e:
36
- # Full traceback for clear debugging in output
37
- error_message = f"❌ **Error:** {str(e)}\n\n```
38
- {traceback.format_exc()}
39
- ```"
40
  return error_message, "", ""
41
 
42
  demo = gr.Interface(
 
33
  plot_path
34
  )
35
  except Exception as e:
36
+ # Full traceback for clear debugging in output (corrected syntax)
37
+ tb = traceback.format_exc()
38
+ error_message = f"❌ **Error:** {str(e)}\n\n```\n{tb}\n```"
 
39
  return error_message, "", ""
40
 
41
  demo = gr.Interface(