23.facebook-events: on_error is now an unbound function
@@ -24,7 +24,7 @@ ADAPTER = BotFrameworkAdapter(SETTINGS)
# Catch-all for errors.
-async def on_error(self, context: TurnContext, error: Exception):
+async def on_error(context: TurnContext, error: Exception):
# This check writes out errors to console log .vs. app insights.
# NOTE: In production environment, you should consider logging this to Azure
# application insights.
@@ -47,7 +47,7 @@ async def on_error(self, context: TurnContext, error: Exception):
# Send a trace activity, which will be displayed in Bot Framework Emulator
await context.send_activity(trace_activity)
-ADAPTER.on_turn_error = MethodType(on_error, ADAPTER)
+ADAPTER.on_turn_error = on_error
# Create the Bot
BOT = FacebookBot()
