diff --git a/piku.py b/piku.py index bcbc964..e0a4d12 100755 --- a/piku.py +++ b/piku.py @@ -261,10 +261,10 @@ def parse_procfile(filename): # Check for cron patterns if kind == "cron": limits = [59, 24, 31, 12, 7] - matches = match(CRON_REGEXP, command) + matches = match(CRON_REGEXP, command).groups() if matches: for i in range(len(limits)): - if int(matches[i + 1].replace("*/", "").replace("*", "1")) > limits[i]: + if int(matches[i].replace("*/", "").replace("*", "1")) > limits[i]: raise ValueError workers[kind] = command except Exception: