diff --git a/server/data_updates/00014_20180801-143538_vocabularies.py b/server/data_updates/00014_20180801-143538_vocabularies.py index 0b9e1a91f..a4ec55156 100644 --- a/server/data_updates/00014_20180801-143538_vocabularies.py +++ b/server/data_updates/00014_20180801-143538_vocabularies.py @@ -642,7 +642,7 @@ def forwards(self, mongodb_collection, mongodb_database): if 'schema' in vocabulary: schema = vocabulary['schema'] for field in ['name', 'qcode']: - if field in vocabulary['schema'] and type(vocabulary['schema']) == dict: + if field in vocabulary['schema'] and isinstance(vocabulary['schema'], dict): schema[field]['required'] = True mongodb_collection.update({'_id': vocabulary.get(config.ID_FIELD)}, {'$set': {'schema': schema}}) diff --git a/server/requirements.txt b/server/requirements.txt index 5c6a18a60..1ac8b68f6 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -212,7 +212,7 @@ pytz==2022.5 # icalendar # superdesk-core # tzlocal -pyyaml==5.4.1 +pyyaml==6.0.1 # via superdesk-core raven[flask]==6.10.0 # via superdesk-core