Skip to content

Commit 560f090

Browse files
committed
polish code [skip ci]
1 parent e96048f commit 560f090

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/jmcomic/jm_option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def copy_option(self):
210210
dir_rule={
211211
'rule': self.dir_rule.rule_dsl,
212212
'base_dir': self.dir_rule.base_dir,
213-
'normalize_zh': getattr(self.dir_rule, 'normalize_zh', None),
213+
'normalize_zh': self.dir_rule.normalize_zh,
214214
},
215215
download=self.download.src_dict,
216216
client=self.client.src_dict,
@@ -336,7 +336,7 @@ def deconstruct(self) -> Dict:
336336
'dir_rule': {
337337
'rule': self.dir_rule.rule_dsl,
338338
'base_dir': self.dir_rule.base_dir,
339-
'normalize_zh': getattr(self.dir_rule, 'normalize_zh', None),
339+
'normalize_zh': self.dir_rule.normalize_zh,
340340
},
341341
'download': self.download.src_dict,
342342
'client': self.client.src_dict,

0 commit comments

Comments
 (0)