@jqz1226 是否要这样写
try:
if hasattr(g, 'rds_connected') and g.rds_connected:
try:
rds = g.__dict__.get('__redis')
if rds is not None:
return rds
except AttributeError:
pass
except AttributeError:
pass
PUBSUB模式跑通了,卡在STREAM模式了,出现这个不知道什么原因。
AttributeError: 'Database' object has no attribute 'stream'