deallocate: ignore all 'requests' exceptions

This commit is contained in:
Brian Warner 2015-11-12 10:11:30 -08:00
parent 2e393c145e
commit 101c800237

View File

@ -117,8 +117,7 @@ class Channel:
# short timeout and ignore failures # short timeout and ignore failures
requests.post(self._relay_url+"deallocate", data=data, requests.post(self._relay_url+"deallocate", data=data,
timeout=5) timeout=5)
except (requests.exceptions.ConnectionError, except requests.exceptions.RequestException:
requests.exceptions.Timeout):
pass pass
class ChannelManager: class ChannelManager: