TypeError in the console (due to @player_only) #610
Labels
bug
This issue reports a bug in piqueserver code and/or docs
core commands
This issues involves piqueserver's core commands
priority:low
This issue has a very low impact or is only noticable in rare circumstances
Milestone
Describe the bug
Commands with "@player_only" like some(connection, value) throw TypeError to the console when they enter an empty argument.
For example, "/login" or "/vote" from "piqueserver.scripts.votemap" script.
To Reproduce
Steps to reproduce the behavior:
Stack Trace or logs
https://gist.github.com/EvgenZhaba/468c5d3f84f6ca55d6070082e9e69009
this line https://github.com/piqueserver/piqueserver/blob/master/piqueserver/commands.py#L268
Additional context
I tried to create a user script with my "login" command: copied everything from the original, but removed the "@player_only" and everything seems to work.
The text was updated successfully, but these errors were encountered: