always set webhook_url

This commit is contained in:
Jannes Höke 2016-04-21 12:57:03 +02:00
parent 48eb623f15
commit c0dd9c6ffc

View file

@ -301,11 +301,11 @@ class Updater(object):
if use_ssl: if use_ssl:
self._check_ssl_cert(cert, key) self._check_ssl_cert(cert, key)
if not webhook_url: if not webhook_url:
webhook_url = self._gen_webhook_url(listen, port, url_path) webhook_url = self._gen_webhook_url(listen, port, url_path)
self._set_webhook(webhook_url, bootstrap_retries, self._set_webhook(webhook_url, bootstrap_retries,
open(cert, 'rb')) open(cert, 'rb') if use_ssl else None)
self.httpd.serve_forever(poll_interval=1) self.httpd.serve_forever(poll_interval=1)