Closed Bug 1069945 Opened 10 years ago Closed 10 years ago

strptime() argument 1 must be string without null bytes, not unicode

Categories

(Mozilla Reps Graveyard :: reps.mozilla.org, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tasos, Assigned: tasos)

Details

(Whiteboard: [kb=1514145] )

Traceback (most recent call last):

  File "/data/www/reps-dev.allizom.org/remo/vendor/lib/python/django/core/handlers/base.py", line 113, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/reps-dev.allizom.org/remo/remo/reports/views.py", line 205, in list_ng_reports
    month = month2number(request.GET['month'])

  File "/data/www/reps-dev.allizom.org/remo/remo/base/utils.py", line 96, in month2number
    return datetime.datetime.strptime(month, '%B').month

TypeError: strptime() argument 1 must be string without null bytes, not unicode
Whiteboard: [kb=1514145]
Commits pushed to master at https://github.com/mozilla/remo

https://github.com/mozilla/remo/commit/269b5040d13bdf530bbee3ee2267e7b0c3abb4c1
[fix bug 1069945] Handle wrong input in reports url.

https://github.com/mozilla/remo/commit/041d7c91d78f9a3a921bc02eb89f167ffbd68d6f
Merge pull request #820 from akatsoulas/1069945

[fix bug 1069945] Handle wrong input in reports url.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Version: unspecified → next
Status: RESOLVED → VERIFIED
Version: next → 440
Product: Mozilla Reps → Mozilla Reps Graveyard
You need to log in before you can comment on or make changes to this bug.