We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c90a7e commit 6d6492dCopy full SHA for 6d6492d
redis/client.py
@@ -761,9 +761,14 @@ def next_command(self):
761
client_port = client_info[5:]
762
client_type = "unix"
763
else:
764
- # use rsplit as ipv6 addresses contain colons
765
- client_address, client_port = client_info.rsplit(":", 1)
766
- client_type = "tcp"
+ if client_info == "":
+ client_address = ""
+ client_port = ""
767
+ client_type = "unknown"
768
+ else:
769
+ # use rsplit as ipv6 addresses contain colons
770
+ client_address, client_port = client_info.rsplit(":", 1)
771
+ client_type = "tcp"
772
return {
773
"time": float(command_time),
774
"db": int(db_id),
0 commit comments