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:
committed by
Daniel Alvarez
parent
b441781351
commit
26920a30b2
@@ -156,7 +156,7 @@ def main():
|
|||||||
k = PyKeyboard()
|
k = PyKeyboard()
|
||||||
k.type_string(otp)
|
k.type_string(otp)
|
||||||
elif args.copy_clipboard:
|
elif args.copy_clipboard:
|
||||||
pyperclip.copy(otp)
|
pyperclip.copy(otp.encode('ascii'))
|
||||||
else:
|
else:
|
||||||
print(otp)
|
print(otp)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user