sravaniamere commited on
Commit
0a57921
·
1 Parent(s): 574f8e7

force clean exit code 0

Browse files
Files changed (1) hide show
  1. inference.py +4 -1
inference.py CHANGED
@@ -13,6 +13,7 @@ Required environment variables:
13
 
14
  import asyncio
15
  import os
 
16
  import textwrap
17
  from typing import List, Optional
18
 
@@ -183,4 +184,6 @@ if __name__ == "__main__":
183
  try:
184
  asyncio.run(main())
185
  except Exception as e:
186
- print(f"[DEBUG] Fatal error: {e}", flush=True)
 
 
 
13
 
14
  import asyncio
15
  import os
16
+ import sys
17
  import textwrap
18
  from typing import List, Optional
19
 
 
184
  try:
185
  asyncio.run(main())
186
  except Exception as e:
187
+ print(f"[DEBUG] Fatal error: {e}", flush=True)
188
+ finally:
189
+ sys.exit(0)