Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner

response = get_response(request)


 "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py", line 31, in _cache_controlled

response = viewfunc(request, *args, **kw)


 "/usr/local/lib/python3.6/site-packages/wagtail/admin/urls/__init__.py", line 95, in wrapper


return view_func(request, *args, **kwargs)


 "/usr/local/lib/python3.6/site-packages/wagtail/admin/decorators.py", line 28, in decorated_view

return view_func(request, *args, **kwargs)


 "/usr/local/lib/python3.6/site-packages/wagtail/admin/utils.py", line 139, in wrapped_view_func

return view_func(request, *args, **kwargs)


 "/usr/local/lib/python3.6/site-packages/wagtail/documents/views/documents.py", line 154, in edit

filesize = doc.file.size


 "/usr/local/lib/python3.6/site-packages/django/db/models/fields/files.py", line 69, in size

return self.storage.size(self.name)


 "/usr/local/lib/python3.6/site-packages/storages/backends/s3boto.py", line 473, in size

return self.bucket.get_key(self._encode_name(name)).size
AttributeError: 'NoneType' object has no attribute 'size'

Traceback (most recent call last):

 "/usr/bin/xonsh", line 9, in <module>
load_entry_point('xonsh==0.2.7', 'console_scripts', 'xonsh')()

 "/usr/lib/python3.5/site-packages/xonsh/main.py", line 236, in main
shell.cmdloop()

 "/usr/lib/python3.5/site-packages/xonsh/ptk/shell.py", line 111, in cmdloop
line = self.singleline(auto_suggest=auto_suggest)

 "/usr/lib/python3.5/site-packages/xonsh/ptk/shell.py", line 80, in singleline
display_completions_in_columns=multicolumn)

 "/usr/lib/python3.5/site-packages/xonsh/ptk/shortcuts.py", line 104, in prompt
document = cli.run(reset_current_buffer=False)

 "/usr/lib/python3.5/site-packages/prompt_toolkit/interface.py", line 366, in run
with self.input.raw_mode():

 "/usr/lib/python3.5/site-packages/prompt_toolkit/terminal/vt100_input.py", line 415, in __enter__
os.write(self.fileno, b'\x1b[?1l')OSError: [Errno 9] Bad file descriptor