jazzband/django-silk

raise codec error in execute_sql

Open

#157 opened on Jan 6, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (319 forks)batch import
bughelp wanted

Repository metrics

Stars
 (3,958 stars)
PR merge metrics
 (Avg merge 14d) (2 merged PRs in 30d)

Description

The statement would raise codec error when "params" contained non ASCII strings at sql.py: sql_query = q % params It's better to use django's force_text processing to handle it.

Contributor guide