forked from MirrorHub/synapse
Connection errors in twisted aren't RuntimeErrors
This commit is contained in:
parent
e1515c3e91
commit
e9c85a4d5a
1 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ class FederationClient(FederationBase):
|
||||||
break
|
break
|
||||||
except CodeMessageException:
|
except CodeMessageException:
|
||||||
raise
|
raise
|
||||||
except RuntimeError as e:
|
except Exception as e:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"Failed to make_join via %s: %s",
|
"Failed to make_join via %s: %s",
|
||||||
destination, e.message
|
destination, e.message
|
||||||
|
@ -319,7 +319,7 @@ class FederationClient(FederationBase):
|
||||||
})
|
})
|
||||||
except CodeMessageException:
|
except CodeMessageException:
|
||||||
raise
|
raise
|
||||||
except RuntimeError as e:
|
except Exception as e:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"Failed to send_join via %s: %s",
|
"Failed to send_join via %s: %s",
|
||||||
destination, e.message
|
destination, e.message
|
||||||
|
|
Loading…
Reference in a new issue