File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -222,15 +222,15 @@ def block_fallback(props):
222
222
type_ = props[' block' ][' type' ]
223
223
224
224
if type_ == ' example-discard' :
225
- logging.warn (f ' Missing config for " { type_} ". Discarding block, keeping content. ' )
225
+ logging.warning (f ' Missing config for " { type_} ". Discarding block, keeping content. ' )
226
226
# Directly return the block's children to keep its content.
227
227
return props[' children' ]
228
228
elif type_ == ' example-delete' :
229
229
logging.error(f ' Missing config for " { type_} ". Deleting block. ' )
230
230
# Return None to not render anything, removing the whole block.
231
231
return None
232
232
else :
233
- logging.warn (f ' Missing config for " { type_} ". Using div instead. ' )
233
+ logging.warning (f ' Missing config for " { type_} ". Using div instead. ' )
234
234
# Provide a fallback.
235
235
return DOM .create_element(' div' , {}, props[' children' ])
236
236
```
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def link(props):
29
29
def block_fallback (props ):
30
30
type_ = props ["block" ]["type" ]
31
31
32
- logging .warn (f'Missing config for "{ type_ } ".' )
32
+ logging .warning (f'Missing config for "{ type_ } ".' )
33
33
return DOM .create_element ("div" , {}, props ["children" ])
34
34
35
35
You can’t perform that action at this time.
0 commit comments