From 2d26d36fbf0d7dc688b102190db21e0b1c53d54b Mon Sep 17 00:00:00 2001 From: Nyo Date: Sat, 8 Oct 2016 20:34:17 +0200 Subject: [PATCH] .BANCHO. .FIX. Return bytes rather than None in match packets if match doesn't exist --- constants/serverPackets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/constants/serverPackets.py b/constants/serverPackets.py index 566a454..16ae3dc 100644 --- a/constants/serverPackets.py +++ b/constants/serverPackets.py @@ -196,7 +196,7 @@ def fellowSpectatorLeft(userID): def createMatch(matchID): # Make sure the match exists if matchID not in glob.matches.matches: - return None + return bytes() # Get match binary data and build packet match = glob.matches.matches[matchID] @@ -206,7 +206,7 @@ def createMatch(matchID): def updateMatch(matchID): # Make sure the match exists if matchID not in glob.matches.matches: - return None + return bytes() # Get match binary data and build packet match = glob.matches.matches[matchID] @@ -215,7 +215,7 @@ def updateMatch(matchID): def matchStart(matchID): # Make sure the match exists if matchID not in glob.matches.matches: - return None + return bytes() # Get match binary data and build packet match = glob.matches.matches[matchID] @@ -227,7 +227,7 @@ def disposeMatch(matchID): def matchJoinSuccess(matchID): # Make sure the match exists if matchID not in glob.matches.matches: - return None + return bytes() # Get match binary data and build packet match = glob.matches.matches[matchID]