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
requests.post(self._relay_url+"deallocate", data=data,
timeout=5)
except (requests.exceptions.ConnectionError,
requests.exceptions.Timeout):
except requests.exceptions.RequestException:
pass
class ChannelManager: