Advertisement
j7sx

Untitled

Jul 25th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. try:
  2. name = raw_input("Представьтесь: ").strip()
  3. if not re.match(r'^[a-zA-Z0-9]+$', name):
  4. pass
  5. except ValueError:
  6. print "Разрешены только буквы латинского алфавита и цифры"
  7. c.execute("SELECT COUNT(login) FROM user WHERE user.login=?", (name,))
  8.  
  9. вот такая ошибка:
  10. sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement