fix: rules should not be None for in (#10977)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
da601f0bef
commit
ed55de888a
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class CleanProcessor:
|
||||||
# Unicode U+FFFE
|
# Unicode U+FFFE
|
||||||
text = re.sub("\ufffe", "", text)
|
text = re.sub("\ufffe", "", text)
|
||||||
|
|
||||||
rules = process_rule["rules"] if process_rule else None
|
rules = process_rule["rules"] if process_rule else {}
|
||||||
if "pre_processing_rules" in rules:
|
if "pre_processing_rules" in rules:
|
||||||
pre_processing_rules = rules["pre_processing_rules"]
|
pre_processing_rules = rules["pre_processing_rules"]
|
||||||
for pre_processing_rule in pre_processing_rules:
|
for pre_processing_rule in pre_processing_rules:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue