Archived
feat: fixed a bug
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -635,7 +635,7 @@ def modify_config(mode: bool = False):
|
|||||||
break
|
break
|
||||||
except (IndexError, ValueError) as e:
|
except (IndexError, ValueError) as e:
|
||||||
logger.info(e)
|
logger.info(e)
|
||||||
logger.error(f'[Write]{language["input_type_error"]}')
|
logger.error(f'[Write]{language["input_type_error"]} --> {e}')
|
||||||
continue
|
continue
|
||||||
finally:
|
finally:
|
||||||
if not mode:
|
if not mode:
|
||||||
@@ -645,7 +645,7 @@ def modify_config(mode: bool = False):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
CONFIG_NAME = 'config.yml' # 配置文件名称
|
CONFIG_NAME = 'config.yml' # 配置文件名称
|
||||||
LOCATION_ID_FILE_NAME = 'china_city_list_xlsx' # 城市id文件必须为xlsx文件
|
LOCATION_ID_FILE_NAME = 'china_city_list.xlsx' # 城市id文件必须为xlsx文件
|
||||||
|
|
||||||
# logs为空文件夹git上传时会自动忽略此文件夹, 故添加自动创建文件夹
|
# logs为空文件夹git上传时会自动忽略此文件夹, 故添加自动创建文件夹
|
||||||
if not os.path.isdir('./logs'):
|
if not os.path.isdir('./logs'):
|
||||||
|
|||||||
Reference in New Issue
Block a user