mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
salt/utils/event.py: remove raw string formatting
This commit is contained in:
parent
ce396d4f0c
commit
7d7089607e
@ -513,7 +513,9 @@ class SaltEvent(object):
|
|||||||
raise ValueError('Empty tag.')
|
raise ValueError('Empty tag.')
|
||||||
|
|
||||||
if not isinstance(data, MutableMapping): # data must be dict
|
if not isinstance(data, MutableMapping): # data must be dict
|
||||||
raise ValueError('Dict object expected, not "{0!r}".'.format(data))
|
raise ValueError(
|
||||||
|
'Dict object expected, not \'{0}\'.'.format(data)
|
||||||
|
)
|
||||||
|
|
||||||
if not self.cpush:
|
if not self.cpush:
|
||||||
self.connect_pull(timeout=timeout)
|
self.connect_pull(timeout=timeout)
|
||||||
|
Loading…
Reference in New Issue
Block a user