@staticmethod
    def __filter(app, data, filter_name):
        filter = app.config.get(filter_name)

        if filter:
            ret_val = {}

            for key, value in data.iteritems():
                for item in filter:
                    if match(item, key):
                        value = "[FILTERED]"
                        break

                ret_val[key] = value
        else:
            ret_val = dict(data)

        return ret_val
Filter sensitive data.
dataset/ETHPy150Open jzempel/flask-exceptional/flask_exceptional.py/Exceptional.__filter