KeyError: 'all'

Use dict.get for all parameter.