From 8873a4a7bd3615377574fc8c622a2e5a0f8f482f Mon Sep 17 00:00:00 2001 From: Mathhew Date: Fri, 25 Sep 2020 16:45:16 +0800 Subject: [PATCH] Update config.ini --- config.ini | 1 + config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.ini b/config.ini index 1f391a7..117eec9 100644 --- a/config.ini +++ b/config.ini @@ -16,6 +16,7 @@ retry=3 [Name_Rule] location_rule=actor+'/'+number naming_rule=number+'-'+title +max_title_len= 50 [update] update_check=1 diff --git a/config.py b/config.py index 1ad6fee..9a95199 100644 --- a/config.py +++ b/config.py @@ -57,7 +57,7 @@ class Config: """ try: return self.conf.getint("Name_Rule", "max_title_len") - except ValueError: + except: return 50 def update_check(self) -> bool: