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(
57
57
# in real program this is not needed, as bot enabling handler is called in the bots process itself and will reset it.
58
58
@APP .delete ("/reset_bot_secret" )
59
59
def 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 )
61
61
return Response ()
62
62
63
63
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ async def talk_bot_coverage(
45
45
# in real program this is not needed, as bot enabling handler is called in the bots process itself and will reset it.
46
46
@APP .delete ("/reset_bot_secret" )
47
47
async 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 )
49
49
return Response ()
50
50
51
51
You can’t perform that action at this time.
0 commit comments