forked from indymedia/epicyon
Exception handling while starting followers thread
parent
afd412118d
commit
d94c04b5bb
11
posts.py
11
posts.py
|
@ -2167,7 +2167,16 @@ def sendToFollowersThread(session, baseDir: str,
|
||||||
cachedWebfingers, personCache,
|
cachedWebfingers, personCache,
|
||||||
postJsonObject.copy(), debug,
|
postJsonObject.copy(), debug,
|
||||||
projectVersion), daemon=True)
|
projectVersion), daemon=True)
|
||||||
sendThread.start()
|
try:
|
||||||
|
sendThread.start()
|
||||||
|
except SocketError as e:
|
||||||
|
print('WARN: socket error while starting ' +
|
||||||
|
'thread to send to followers. ' + str(e))
|
||||||
|
return None
|
||||||
|
except BaseException:
|
||||||
|
print('WARN: error while starting ' +
|
||||||
|
'thread to send to followers. ' + str(e))
|
||||||
|
return None
|
||||||
return sendThread
|
return sendThread
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue