Skip to content

Commit

Permalink
Allow for missing config file
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Aug 23, 2024
1 parent a658588 commit 38856aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/whimsy/asf/mail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ def self._load_flags
if not @flags or File.mtime(@list_flags) != @flags_mtime
lists = []
File.open(@list_flags).each do |line|
if line.match(/^F:-([a-zA-Z]{26}) (\S+) (\S+)/)
if line.match(/(?:^F:-([a-zA-Z]{26}) )?(\S+) (\S+)/)
flags, dom, list = $1, $2, $3
next if list =~ /^infra-[a-z]$/ or (dom == 'incubator' and list == 'infra-dev')

lists << [dom, list, flags]
lists << [dom, list, flags || '']
else
raise "Unexpected flags: #{line}"
end
Expand Down

0 comments on commit 38856aa

Please sign in to comment.