Marthee commited on
Commit
59e818b
·
verified ·
1 Parent(s): 04f4367

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -441,7 +441,7 @@ def findapitobebilledonlymultple():
441
  ##################### For Rawan - MC Connection ###########################################################################################################
442
  ################################################################################################################################################################
443
  ################################################################################################################################################################
444
-
445
  @app.route('/findapi', methods=['GET','POST'])
446
  def findapi():
447
  try:
@@ -467,6 +467,8 @@ def findapi():
467
  jsonoutput=tablepdfoutput
468
  return jsonify(tablepdfoutput)
469
  except Exception as e:
 
 
470
  return jsonify({"error": str(e)}), 500
471
 
472
  ############################################# Testing #################################################
 
441
  ##################### For Rawan - MC Connection ###########################################################################################################
442
  ################################################################################################################################################################
443
  ################################################################################################################################################################
444
+ import traceback
445
  @app.route('/findapi', methods=['GET','POST'])
446
  def findapi():
447
  try:
 
467
  jsonoutput=tablepdfoutput
468
  return jsonify(tablepdfoutput)
469
  except Exception as e:
470
+ print("ERROR:", e)
471
+ traceback.print_exc() # <–– THIS prints full error to HF log
472
  return jsonify({"error": str(e)}), 500
473
 
474
  ############################################# Testing #################################################