File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def add_retry(self, retry):
262
262
if Field .Retry in self .allowed_fields ():
263
263
self .retries .extend (retry ) if isinstance (retry , list ) else self .retries .append (retry )
264
264
else :
265
- raise ValueError ("{state_type } state does not support retry field. ". format ( state_type = type ( self ). __name__ ) )
265
+ raise ValueError (f" { type ( self ). __name__ } state does not support retry field. " )
266
266
267
267
def add_catch (self , catch ):
268
268
"""
@@ -274,7 +274,7 @@ def add_catch(self, catch):
274
274
if Field .Catch in self .allowed_fields ():
275
275
self .catches .extend (catch ) if isinstance (catch , list ) else self .catches .append (catch )
276
276
else :
277
- raise ValueError ("{state_type } state does not support catch field. ". format ( state_type = type ( self ). __name__ ) )
277
+ raise ValueError (f" { type ( self ). __name__ } state does not support catch field. " )
278
278
279
279
def to_dict (self ):
280
280
result = super (State , self ).to_dict ()
You can’t perform that action at this time.
0 commit comments