Skip to content

collection-creation fails: flag constant for creation undefined (anymore), fixed

Markus Meissner requested to merge daringer/passbook:master into master

Could not create a new collection anymore, received the following error:

[ERROR] /../ SecretsHelper::add_collection(): type object 'CollectionCreateFlags' has no attribute 'COLLECTION_CREATE_NONE'

Somewhere here the flag(s) for collection creation are passed as: Secret.CollectionCreateFlags.COLLECTION_CREATE_NONE, it looks like the const is not available anymore. A simple replacement using Secret.CollectionCreateFlags(0) is the one-liner requested for a merge here.

The reference documentation anyways states that the flags argument is currently unused, thus shouldn't break anything I hope...

best

Edited by Markus Meissner

Merge request reports