[traceback] TypeError: %d format: a number is required, not str

RESOLVED FIXED

Status

addons.mozilla.org Graveyard
Public Pages
--
major
RESOLVED FIXED
6 years ago
2 years ago

People

(Reporter: krupa, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

6 years ago
steps to reproduce:
1. Load https://addons-dev.allizom.org/en-US/firefox/

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-mobility/mobility/decorators.py", line 49, in wrapper
    return normal_fn(request, *args, **kw)

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/views.py", line 368, in home
    'src': 'homepage', 'collections': collections})

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

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/jingo/jingo/__init__.py", line 98, 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/addons/templates/addons/home.html", line 8, in top-level template code
    {% set view_all = {

  File "/data/www/addons-dev.allizom.org/zamboni/templates/impala/base_shared.html", line 4, in top-level template code
    {% extends "webapps/base.html" if WEBAPPS else "impala/base.html" %}

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

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

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/templates/addons/home.html", line 40, in block "content"
    {% cache popular %}

  File "/data/www/addons-dev.allizom.org/zamboni/apps/amo/ext.py", line 22, in _cache_support
    return sup(key, obj, timeout, extra, caller)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/ext.py", line 74, in _cache_support
    return caching.base.cached_with(obj, caller, key, timeout)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/base.py", line 284, in cached_with
    return cached(f, key, timeout)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/base.py", line 264, in cached
    val = function()

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/templates/addons/home.html", line 54, in template
    {{ featured|addon_grid(src='hp-hc-featured',

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/jingo/jingo/__init__.py", line 148, in wrapper
    t = env.get_template(template).render(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/addons/templates/addons/impala/addon_grid.html", line 1, in top-level template code
    {% cache addons %}

  File "/data/www/addons-dev.allizom.org/zamboni/apps/amo/ext.py", line 22, in _cache_support
    return sup(key, obj, timeout, extra, caller)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/ext.py", line 74, in _cache_support
    return caching.base.cached_with(obj, caller, key, timeout)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/base.py", line 284, in cached_with
    return cached(f, key, timeout)

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/django-cache-machine/caching/base.py", line 264, in cached
    val = function()

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/templates/addons/impala/addon_grid.html", line 8, in template
    {{ addon|addon_hovercard(lazyload=first_page) }}

  File "/data/www/addons-dev.allizom.org/zamboni/vendor/src/jingo/jingo/__init__.py", line 148, in wrapper
    t = env.get_template(template).render(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/addons/templates/addons/impala/addon_hovercard.html", line 7, in top-level template code
    <img src="{{ addon.icon_url }}">

  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 371, in getattr
    return getattr(obj, attribute)

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/models.py", line 782, in icon_url
    return self.get_icon_url(32)

  File "/data/www/addons-dev.allizom.org/zamboni/apps/addons/models.py", line 665, in get_icon_url
    int(time.mktime(self.modified.timetuple())))

TypeError: %d format: a number is required, not str
oremj fixed this
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Assignee)

Updated

2 years ago
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.