mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 08:18:08 +02:00
Fix #620
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
import types
|
||||
from functools import partial
|
||||
|
||||
from .cli import emph, parse_args
|
||||
@@ -83,7 +84,7 @@ class SocketIO:
|
||||
|
||||
def do_io(to, send, no_response):
|
||||
payload = send.get('payload')
|
||||
if payload is None or isinstance(payload, (str, bytes)):
|
||||
if not isinstance(payload, types.GeneratorType):
|
||||
send_data = encode_send(send)
|
||||
else:
|
||||
def send_generator():
|
||||
|
||||
Reference in New Issue
Block a user