mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-15 15:19:52 +00:00
Codefix: [CI] file descriptions checker crashed when file was removed/renamed.
This commit is contained in:
committed by
rubidium42
parent
f1390b9cf8
commit
7f66f87af4
@@ -31,6 +31,8 @@ def check_descriptions(files):
|
||||
continue
|
||||
if path.find("3rdparty") != -1 or path.find("lang") != -1:
|
||||
continue
|
||||
if not os.path.isfile(path):
|
||||
continue
|
||||
name = path[path.rfind("/") + 1 :]
|
||||
while True:
|
||||
extension = name[name.rfind('.') + 1 :]
|
||||
|
||||
Reference in New Issue
Block a user