[traceback] TypeError: coercing to Unicode: need string or buffer, NoneType found

RESOLVED FIXED

Status

addons.mozilla.org Graveyard
Admin/Editor Tools
RESOLVED FIXED
6 years ago
2 years ago

People

(Reporter: krupa, Assigned: robhudson)

Tracking

Details

(URL)

(Reporter)

Description

6 years ago
steps to reproduce:
1. Load https://addons-dev.allizom.org/z/en-US/admin/addon/manage/assistant/

traceback details:

Traceback (most recent call last):

 File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django/django/utils/decorators.py", line 91, in _wrapped_view
   response = view_func(request, *args, **kwargs)

 File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django/django/views/decorators/cache.py", line 77, in _wrapped_view_func
   response = view_func(request, *args, **kwargs)

 File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django/django/contrib/admin/sites.py", line 196, in inner
   return view(request, *args, **kwargs)

 File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/decorators.py", line 25, in wrapper
   return f(request, addon, *args, **kw)

 File "/data/www/addons-dev.allizom.org/zamboni/apps/zadmin/views.py", line 588, in addon_manage
   'file_map': file_map,

 File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/jingo/jingo/__init__.py", line 79, in render
   rendered = render_to_string(request, template, context)

 File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/jingo/jingo/__init__.py", line 97, in render_to_string
   return template.render(**get_context())

 File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 891, in render
   return self.environment.handle_exception(exc_info, True)

 File "/data/www/addons-dev.allizom.org/zamboni/apps/zadmin/templates/zadmin/addon_manage.html", line 1, in top-level template code
   {% extends "admin/base.html" %}

 File "/data/www/addons-dev.allizom.org/zamboni/apps/zadmin/templates/admin/base.html", line 1, in top-level template code
   {% extends "base.html" %}

 File "/data/www/addons-dev.allizom.org/zamboni/templates/base.html", line 110, in top-level template code
   {% block main_content %}

 File "/data/www/addons-dev.allizom.org/zamboni/templates/base.html", line 115, in block "main_content"
   {% block content %}{% endblock %}

 File "/data/www/addons-dev.allizom.org/zamboni/apps/zadmin/templates/zadmin/addon_manage.html", line 50, in block "content"
   {{ "Copied" if file.has_been_copied() else "Not Copied" }}

 File "/data/www/addons-dev.allizom.org/zamboni/apps/files/models.py", line 86, in has_been_copied
   return os.path.isfile(self.mirror_file_path)

 File "/usr/lib64/python2.6/genericpath.py", line 29, in isfile
   st = os.stat(path)

TypeError: coercing to Unicode: need string or buffer, NoneType found
(Assignee)

Updated

6 years ago
Assignee: nobody → chudson
(Assignee)

Comment 1

6 years ago
https://github.com/jbalogh/zamboni/commit/151f67d9d0a8308ba0c9a0af8b1868f85a224188
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.