Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError when Mapping Target name #35

Closed
jlev opened this issue Feb 22, 2017 · 1 comment
Closed

UnicodeEncodeError when Mapping Target name #35

jlev opened this issue Feb 22, 2017 · 1 comment

Comments

@jlev
Copy link

jlev commented Feb 22, 2017

https://sentry.io/spacedog/callpower-coc/issues/222546123/

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128)
(4 additional frame(s) were not displayed)
...
  File "flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "call_server/call/views.py", line 367, in make_single
    (current_target, cached) = Target.get_uid_or_cache(uid, prefix)
  File "call_server/campaign/models.py", line 198, in get_uid_or_cache
    data = adapt_to_target(cached_obj[0], prefix)
  File "call_server/political_data/adapters.py", line 7, in adapt_to_target
    return adapter.adapt(data)
  File "call_server/political_data/adapters.py", line 22, in adapt
    mapped['name'] = '{first_name} {last_name}'.format(**data)

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128)
@jlev jlev changed the title UnicodeEncodeError UnicodeEncodeError when Mapping Target name Feb 22, 2017
@jlev
Copy link
Author

jlev commented Feb 22, 2017

fixed with b936cc6

@jlev jlev closed this as completed Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant