Skip to content

Commit

Permalink
basestring -> str
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian GAULTIER committed Oct 23, 2019
1 parent 489bfc2 commit 764d859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastalert/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ def create_alert_config(self, match):
value = cf_value['value'].format(**context)
func(cf_key, value)
alert_config[alert_config_field] = custom_fields.build()
elif isinstance(alert_config_value, basestring):
elif isinstance(alert_config_value, str):
alert_config[alert_config_field] = alert_config_value.format(**context)
elif isinstance(alert_config_value, (list, tuple)):
formatted_list = []
Expand Down

0 comments on commit 764d859

Please sign in to comment.