diff --git a/congress/managers/datasource.py b/congress/managers/datasource.py index c11b3bfea..2dc008cd2 100644 --- a/congress/managers/datasource.py +++ b/congress/managers/datasource.py @@ -137,9 +137,13 @@ class DataSourceManager(object): for datasouce_driver in datasources_db.get_datasources(): result = cls.make_datasource_dict(datasouce_driver) if filter_secret: - hide_fields = cls.get_driver_info(result['driver'])['secret'] - for hide_field in hide_fields: - result['config'][hide_field] = "" + # secret field may be not provided while creating datasource + try: + hides = cls.get_driver_info(result['driver'])['secret'] + for hide_field in hides: + result['config'][hide_field] = "" + except KeyError: + pass results.append(result) return results