Traceback (most recent call last):


 "/home/laerus/src/xonsh/xonsh/ptk/shortcuts.py", line 109, in prompt

document = cli.run(reset_current_buffer=False)


 "/usr/lib/python3/dist-packages/prompt_toolkit/interface.py", line 394, in run

self.eventloop.run(self.input, self.create_eventloop_callbacks())


 "/usr/lib/python3/dist-packages/prompt_toolkit/eventloop/posix.py", line 164, in run

t()


 "/usr/lib/python3/dist-packages/prompt_toolkit/eventloop/posix.py", line 83, in read_from_stdin

inputstream.feed(data)


 "/usr/lib/python3/dist-packages/prompt_toolkit/terminal/vt100_input.py", line 395, in feed

self._input_parser.send(c)


 "/usr/lib/python3/dist-packages/prompt_toolkit/terminal/vt100_input.py", line 304, in _input_parser_generator

self._call_handler(match, prefix)


 "/usr/lib/python3/dist-packages/prompt_toolkit/terminal/vt100_input.py", line 337, in _call_handler

self.feed_key_callback(KeyPress(key, insert_text))


 "/usr/lib/python3/dist-packages/prompt_toolkit/interface.py", line 1023, in feed_key

cli.input_processor.process_keys()


 "/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/input_processor.py", line 201, in process_keys

self._process_coroutine.send(key_press)


 "/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/input_processor.py", line 158, in _process

self._call_handler(matches[-1], key_sequence=buffer)


 "/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/input_processor.py", line 228, in _call_handler

handler.call(event)


 "/usr/lib/python3/dist-packages/prompt_toolkit/key_binding/registry.py", line 31, in call

return self.handler(event)


 "/home/laerus/src/xonsh/xonsh/ptk/key_bindings.py", line 237, in multiline_carriage_return

carriage_return(b, event.cli)


 "/home/laerus/src/xonsh/xonsh/ptk/key_bindings.py", line 60, in carriage_return

elif not current_line_blank and not can_compile(doc.text):


 "/home/laerus/src/xonsh/xonsh/ptk/key_bindings.py", line 76, in can_compile

src = src.lstrip()
AttributeError: 'NoneType' object has no attribute 'lstrip'

Traceback (most recent call last):


 "/home/ivan133/.local/lib/python3.6/site-packages/spynner/browser.py", line 1680, in createRequest

jar.allCookies(),


 "/home/ivan133/.local/lib/python3.6/site-packages/spynner/browser.py", line 1587, in merge_cookies

k = kf % get_cookie_info(i)


 "/home/ivan133/.local/lib/python3.6/site-packages/spynner/browser.py", line 1567, in get_cookie_info

domain_flag = str(cookie.domain().toUtf8()).startswith(".")
AttributeError: 'str' object has no attribute 'toUtf8'
