zdavatz/oddb.org

AIPS form button throws an error

Closed this issue · 1 comments

  1. jobs/import_daily throws the following error:
#<Thread:0x00007fd097a898b8 /var/www/oddb.org/src/plugin/text_info.rb:1481 run> terminated with exception (report_on_exception is true):
/var/www/oddb.org/src/plugin/text_info.rb:810:in `textinfo_swissmedicinfo_index': undefined method `button_with' for nil:NilClass (NoMethodError)

      button = form.button_with(:name => 'ctl00$MainContent$btnOK')
                   ^^^^^^^^^^^^
        from /var/www/oddb.org/src/plugin/text_info.rb:1482:in `block in import_swissmedicinfo'
  1. Has the name of the button changed?
  2. latest-screenshot

Adding a pry debug. Looks like the links to the new/changes items has changed. E.g.
https://www.swissmedicinfo.ch/UpdatedTexts.aspx?Lang=DE
Where we expected before http://www.swissmedicinfo.ch/New?Lang=DE