10000 23.facebook-events: on_error is now an unbound function · ericmicrofocus/botbuilder-python@911e1cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 911e1cf

Browse files
author
Tracy Boehrer
committed
23.facebook-events: on_error is now an unbound function
1 parent d5515ba commit 911e1cf

File tree

1 file changed

+2
-2
lines changed
  • samples/23.facebook-events

1 file changed

+2
-2
lines changed

samples/23.facebook-events/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
# Catch-all for errors.
27-
async def on_error(self, context: TurnContext, error: Exception):
27+
async def on_error(context: TurnContext, error: Exception):
2828
# This check writes out errors to console log .vs. app insights.
2929
# NOTE: In production environment, you should consider logging this to Azure
3030
# application insights.
@@ -47,7 +47,7 @@ async def on_error(self, context: TurnContext, error: Exception):
4747
# Send a trace activity, which will be displayed in Bot Framework Emulator
4848
await context.send_activity(trace_activity)
4949

50-
ADAPTER.on_turn_error = MethodType(on_error, ADAPTER)
50+
ADAPTER.on_turn_error = on_error
5151

5252
# Create the Bot
5353
BOT = FacebookBot()

0 commit comments

Comments
 (0)
0