Fix unicode in error message about ssh keys
commitceb90c9d72d5a1ee2fc3f6b94630a1e0a35d7aab
authorMagnus Hagander <magnus@hagander.net>
Wed, 26 Dec 2018 11:44:25 +0000 (26 12:44 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 26 Dec 2018 11:45:17 +0000 (26 12:45 +0100)
tree77a4dab0304b48d1f771ba0dc487ed1eee19262c
parent25860344debe7748d19bf86cfb68b9121c909440
Fix unicode in error message about ssh keys

Caused an exception when somebody tried to upload an SSH key where the
*key type* contains non-ascii (this would normally be things like
"ssh-rsa", and there are definitely no legit key types outside the ascii
range, but we still shouldn't crash)
pgweb/core/models.py