mirror of https://gitlab.com/bashrc2/epicyon
Catch exception if daemon fails
parent
3a57a76703
commit
8ac9a43b29
|
@ -5481,7 +5481,11 @@ def runDaemon(mediaInstance: bool,maxRecentPosts: int, \
|
||||||
pubHandler = partial(PubServerUnitTest)
|
pubHandler = partial(PubServerUnitTest)
|
||||||
else:
|
else:
|
||||||
pubHandler = partial(PubServer)
|
pubHandler = partial(PubServer)
|
||||||
httpd = ThreadingHTTPServer(serverAddress, pubHandler)
|
try:
|
||||||
|
httpd = ThreadingHTTPServer(serverAddress, pubHandler)
|
||||||
|
except Exception as e:
|
||||||
|
print('ERROR: HTTP Server failed to start. '+str(e))
|
||||||
|
return False
|
||||||
|
|
||||||
httpd.useBlurHash=useBlurHash
|
httpd.useBlurHash=useBlurHash
|
||||||
httpd.mediaInstance=mediaInstance
|
httpd.mediaInstance=mediaInstance
|
||||||
|
|
Loading…
Reference in New Issue