master/worker_db/get_last_rid: ignore improperly named files

This commit is contained in:
Sebastien Bourdeauducq 2016-01-16 10:56:01 -07:00
parent a808d26fc2
commit f9323c3286
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ def get_last_rid():
continue
for x in h5files:
m = re.fullmatch('(\d\d\d\d\d\d\d\d\d)-.*\.h5', x)
if m is None:
continue
rid = int(m.group(1))
if rid > r:
r = rid