mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
log warning
This commit is contained in:
parent
c2853fa1ef
commit
f49f592f0d
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ class WebhookServer(BaseHTTPServer.HTTPServer, object):
|
|||
def shutdown(self):
|
||||
with self.shutdown_lock:
|
||||
if not self.is_running:
|
||||
self.logger.warn("Webhook Server already stopped.")
|
||||
return
|
||||
else:
|
||||
super(WebhookServer, self).shutdown()
|
||||
|
@ -45,7 +46,7 @@ class WebhookServer(BaseHTTPServer.HTTPServer, object):
|
|||
# WebhookHandler, process webhook calls
|
||||
# Based on: https://github.com/eternnoir/pyTelegramBotAPI/blob/master/
|
||||
# examples/webhook_examples/webhook_cpython_echo_bot.py
|
||||
class WebhookHandler(BaseHTTPServer.BaseHTTPRequestHandler, object):
|
||||
class WebhookHandler(BaseHTTPServer.BaseHTTPRequestHandler, object):
|
||||
server_version = "WebhookHandler/1.0"
|
||||
|
||||
def __init__(self, request, client_address, server):
|
||||
|
|
Loading…
Add table
Reference in a new issue