Skip to content

Commit 0b3c140

Browse files
committed
fix: non-str es config values exist
1 parent caf2016 commit 0b3c140

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

elasticsearch_metrics/apps.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ def _each_backend_setting() -> (
5757
if not (
5858
isinstance(_imp_module_name, str)
5959
and isinstance(_imp_kwargs, dict)
60-
and all(
61-
isinstance(_k, str) and isinstance(_v, str)
62-
for _k, _v in _imp_kwargs.items()
63-
)
60+
and all(isinstance(_k, str) for _k in _imp_kwargs.keys())
6461
):
6562
raise ImproperlyConfigured(
6663
BACKENDS_SETTING,

0 commit comments

Comments
 (0)