-
-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
miio-extract-tokens raises a TypeError when running against extracted SQLite database #467
Comments
@rytilahti I think I found the bug:
The action cam has only bluetooth connection, thus no token ( |
Great! 👍 A PR is very welcome, I think the best way is simply to check for Noneness inside |
The `miio.extra_tokens.BackupDatabaseReader.decrypt_ztoken` method will raise a `TypeError` when a device in the SQLite database file has no token defined. This occurs for local (bluetooth) devices, such as the Mi Action Cam. This change will fix the `miio-extra-tokens` utility, so that it will work again, even if there are devices without tokens. See also issue rytilahti#467 for more informations.
Done, that should work. I simply check for |
FYI I manually tested it and it works again… |
The `miio.extra_tokens.BackupDatabaseReader.decrypt_ztoken` method will raise a `TypeError` when a device in the SQLite database file has no token defined. This occurs for local (bluetooth) devices, such as the Mi Action Cam. This change will fix the `miio-extra-tokens` utility, so that it will work again, even if there are devices without tokens. See also issue #467 for more informations.
Thanks, this can be closed then! |
When running
miio-extract-tokens
against an extracted SQLite database from an iOS backup, the script raises aTypeError
:Please note this is a follow up of the PR #460, as I want to leave issue-related discussions in the issue section.
I'll post more as soon as I've done some additional testing.
The text was updated successfully, but these errors were encountered: