From ff7a0d9394f59e9523cd36ac360cf05ba767d322 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 5 Aug 2022 04:12:51 +0000 Subject: [PATCH] rescue very old site --- lib/ask/engine.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ask/engine.rb b/lib/ask/engine.rb index 3e2bec2..204d97c 100644 --- a/lib/ask/engine.rb +++ b/lib/ask/engine.rb @@ -56,7 +56,11 @@ module Ask OrbitApp.registration "Ask", :type => "ModuleApp" do module_label "ask.ask" base_url File.expand_path File.dirname(__FILE__) - set_keyword_contstraints ['/asks'] + begin + set_keyword_contstraints ['/asks'] + rescue => e + puts ['the site is too old'] + end widget_methods ["widget"] widget_settings [{"data_count"=>10}] # taggable "AskQuestion" @@ -153,4 +157,4 @@ module Ask end end end -end \ No newline at end of file +end