Permalink
Browse files

TAFIWeekly: fix detection of page name on WT:TAFI

  • Loading branch information...
MusikAnimal committed Jul 4, 2016
1 parent c3fd30b commit 88acbbb0e08d334e0ee946ea01011b5de91d757a
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/tafi_weekly.rb
View
@@ -36,7 +36,7 @@ def self.add_new_scheduled_selection(throttle = 0)
conflicts: true
)
return @mb.get(page).scan(/icon\|\w+}} \[\[(.*?)\]\].*?mbdate.*?#{@mb.today.day} #{@mb.today.strftime('%B')}/).flatten.last
return @mb.get(page).scan(/icon\|(?:\w+|\?)}} \[\[(.*?)\]\].*?mbdate.*?#{@mb.today.day} #{@mb.today.strftime('%B')}/).flatten.last
rescue MediaWiki::APIError => e
if throttle > 3
@mb.report_error('Edit throttle hit', e)

0 comments on commit 88acbbb

Please sign in to comment.