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

VERIFIED FIXED

Status

Mozilla Reps
reps.mozilla.org
VERIFIED FIXED
4 years ago
4 years ago

People

(Reporter: tasos, Assigned: tasos)

Tracking

Details

(Whiteboard: [kb=1514145] )

(Assignee)

Description

4 years ago
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
(Assignee)

Updated

4 years ago
Whiteboard: [kb=1514145]

Comment 1

4 years ago
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.

Updated

4 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED

Updated

4 years ago
Version: unspecified → next
Status: RESOLVED → VERIFIED
(Assignee)

Updated

4 years ago
Version: next → 440
You need to log in before you can comment on or make changes to this bug.