mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-30 09:45:53 +00:00
Fix a bug with string types in verify_fingerprint
This commit is contained in:
parent
dd0d399d82
commit
46d61d23dc
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ def prepare_verify(verify, verify_fingerprint):
|
|||
.format(verify))
|
||||
|
||||
if verify_fingerprint is not None:
|
||||
if not isinstance(verify_fingerprint, str):
|
||||
if not isinstance(verify_fingerprint, (bytes, text_type)):
|
||||
raise exceptions.UserError('Invalid value for verify_fingerprint '
|
||||
'({}), must be a string or null.'
|
||||
.format(verify_fingerprint))
|
||||
|
|
|
|||
Loading…
Reference in a new issue