mirror of
https://github.com/gryf/softtoken.git
synced 2026-03-25 04:03:34 +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:
committed by
Daniel Alvarez
parent
b441781351
commit
26920a30b2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user