mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-24 08:56:52 +01:00
Make API extension print its exceptions
This commit is contained in:
parent
f642135517
commit
68ed73dd89
@ -1,7 +1,8 @@
|
||||
|
||||
from threading import Thread
|
||||
import time
|
||||
import traceback
|
||||
from threading import Thread
|
||||
from typing import Callable, Optional
|
||||
|
||||
from modules.text_generation import encode
|
||||
|
||||
|
||||
@ -64,6 +65,7 @@ def _start_cloudflared(port: int, max_attempts: int = 3, on_start: Optional[Call
|
||||
|
||||
return
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
time.sleep(3)
|
||||
|
||||
raise Exception('Could not start cloudflared.')
|
||||
|
Loading…
Reference in New Issue
Block a user