Traceback (most recent call last):


 "weiboSpider.py", line 343, in write_txt

u"发布工具: " + self.publish_tool[i - 1] + "\n\n"
TypeError: cannot concatenate 'str' and 'NoneType' objects

Traceback (most recent call last):


 "/Users/dara/dev/fakeredis/test_fakeredis.py", line 3673, in test_eval_zrange

''', 1, 'foo', 0, -1


 "/Users/dara/dev/fakeredis/fakeredis.py", line 502, in func_wrapper

return func(*args, **kwargs)


 "/Users/dara/dev/fakeredis/fakeredis.py", line 510, in func_wrapper

ret = func(self, *args, **kwargs)


 "/Users/dara/dev/fakeredis/fakeredis.py", line 1061, in eval

result = lua_runtime.execute(script)


 "lupa/_lupa.pyx", line 262, in lupa._lupa.LuaRuntime.execute


 "lupa/_lupa.pyx", line 1279, in lupa._lupa.run_lua


 "lupa/_lupa.pyx", line 1288, in lupa._lupa.call_lua


 "lupa/_lupa.pyx", line 1313, in lupa._lupa.execute_lua_call


 "lupa/_lupa.pyx", line 235, in lupa._lupa.LuaRuntime.reraise_on_exception


 "lupa/_lupa.pyx", line 1451, in lupa._lupa.py_call_with_gil


 "lupa/_lupa.pyx", line 1438, in lupa._lupa.call_python


 "/Users/dara/dev/fakeredis/fakeredis.py", line 1177, in _lua_redis_call

result = func(self, *args)


 "/Users/dara/dev/fakeredis/fakeredis.py", line 510, in func_wrapper

ret = func(self, *args, **kwargs)


 "/Users/dara/dev/fakeredis/fakeredis.py", line 1920, in zrange

end += 1
TypeError: coercing to Unicode: need string or buffer, int found
