Network: remove "SlotAlreadyTaken" from docs and clients, as it was removed from the server in 0.2

This commit is contained in:
Fabian Dill
2022-05-24 05:22:52 +02:00
committed by KonoTyran
parent c661da57d8
commit e8be80ccd7
4 changed files with 6 additions and 9 deletions

View File

@@ -347,7 +347,7 @@ class CommonContext():
}
}])
async def update_death_link(self, death_link):
async def update_death_link(self, death_link: bool):
old_tags = self.tags.copy()
if death_link:
self.tags.add("DeathLink")
@@ -496,8 +496,6 @@ async def process_server_cmd(ctx: CommonContext, args: dict):
ctx.event_invalid_slot()
elif 'InvalidGame' in errors:
ctx.event_invalid_game()
elif 'SlotAlreadyTaken' in errors:
raise Exception('Player slot already in use for that team')
elif 'IncompatibleVersion' in errors:
raise Exception('Server reported your client version as incompatible')
elif 'InvalidItemsHandling' in errors:
@@ -670,8 +668,10 @@ if __name__ == '__main__':
if args.url:
url = urllib.parse.urlparse(args.url)
args.connect = url.netloc
args.name = urllib.parse.unquote(url.username)
args.password = urllib.parse.unquote(url.password)
if url.username:
args.name = urllib.parse.unquote(url.username)
if url.password:
args.password = urllib.parse.unquote(url.password)
colorama.init()