forked from indymedia/epicyon
Exception handling while starting followers thread
parent
afd412118d
commit
d94c04b5bb
9
posts.py
9
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)
|
||||||
|
try:
|
||||||
sendThread.start()
|
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