Skip to content

Commit ed0b49b

Browse files
authored
CI-tests: specify default value for dict.pop operation (#207)
1 parent 3a73346 commit ed0b49b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/_talk_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")
5959
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)
6161
return Response()
6262

6363

tests/_talk_bot_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")
4747
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)
4949
return Response()
5050

5151

0 commit comments

Comments
 (0)