MVPilgrim commited on
Commit
f32ef7a
·
1 Parent(s): 74bc1d0
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -456,11 +456,12 @@ try:
456
 
457
  logger.info("#### semsearch.py terminating.")
458
  except Exception as e:
459
- emsg =
460
- logger.error("#### Program-wide EXCEPTION. e: {e}")
461
  try:
 
 
462
  with open("/app/startup.log", "r") as file:
463
  content = file.read()
464
  print(content)
465
  except Exception as e2:
466
- logger.error("#### Displaying startup.log EXCEPTION. e2: {e2}")
 
 
456
 
457
  logger.info("#### semsearch.py terminating.")
458
  except Exception as e:
 
 
459
  try:
460
+ emsg = str(e)
461
+ logger.error("#### Program-wide EXCEPTION. e: {emsg}")
462
  with open("/app/startup.log", "r") as file:
463
  content = file.read()
464
  print(content)
465
  except Exception as e2:
466
+ emsg = str(e2)
467
+ logger.error("#### Displaying startup.log EXCEPTION. e2: {emsg}")