File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def talk_bot_coverage(
5757# in real program this is not needed, as bot enabling handler is called in the bots process itself and will reset it.
5858@APP .delete ("/reset_bot_secret" )
5959def reset_bot_secret ():
60- os .environ .pop (talk_bot .__get_bot_secret ("/talk_bot_coverage" ))
60+ os .environ .pop (talk_bot .__get_bot_secret ("/talk_bot_coverage" ), None )
6161 return Response ()
6262
6363
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ async def talk_bot_coverage(
4545# in real program this is not needed, as bot enabling handler is called in the bots process itself and will reset it.
4646@APP .delete ("/reset_bot_secret" )
4747async def reset_bot_secret ():
48- os .environ .pop (talk_bot .__get_bot_secret ("/talk_bot_coverage" ))
48+ os .environ .pop (talk_bot .__get_bot_secret ("/talk_bot_coverage" ), None )
4949 return Response ()
5050
5151
You can’t perform that action at this time.
0 commit comments