1
0
mirror of https://github.com/gryf/softtoken.git synced 2025-12-19 04:20:22 +01:00

Convert the otp value to ascii from unicode

Othersise the clipboard library fails in my system
because it's not expecting unicode.
This commit is contained in:
Miguel Angel Ajo
2018-06-29 09:59:10 +02:00
committed by Daniel Alvarez
parent b441781351
commit 26920a30b2

View File

@@ -156,7 +156,7 @@ def main():
k = PyKeyboard()
k.type_string(otp)
elif args.copy_clipboard:
pyperclip.copy(otp)
pyperclip.copy(otp.encode('ascii'))
else:
print(otp)