File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " vfxnaming"
7- version = " 1.5.5 -beta"
7+ version = " 1.5.6 -beta"
88authors = [
99 { name =" Chris Granados" , email =" info@chrisgranados.com" },
1010]
Original file line number Diff line number Diff line change @@ -86,11 +86,17 @@ def from_data(cls, data) -> "Rule":
8686 if data .get ("_Serializable_version" ) is not None :
8787 del data ["_Serializable_version" ]
8888
89+ if not data .get ("_name" ):
90+ raise RuleError (f"Rule name is required but was not found in { data } " )
91+
92+ if not data .get ("_pattern" ):
93+ raise RuleError (f"Rule pattern is required but was not found in { data } " )
94+
8995 this = cls (
9096 data .get ("_name" ),
9197 data .get ("_pattern" ),
92- data .get ("_anchor" ),
93- data .get ("_nice_name" ),
98+ data .get ("_anchor" , cls . ANCHOR_START ),
99+ data .get ("_nice_name" , "" ),
94100 )
95101 return this
96102
You can’t perform that action at this time.
0 commit comments