We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb57f9 commit 3f5ceb5Copy full SHA for 3f5ceb5
templates/ruby/search_helpers.mustache
@@ -396,11 +396,13 @@ end
396
def index_exists?(index_name)
397
begin
398
get_settings(index_name)
399
- rescue AlgoliaHttpError => e
400
- return false if e.code == 404
+ rescue Exception => e
+ if e.is_a?(AlgoliaHttpError)
401
+ return false if e.code == 404
402
- raise e
403
+ raise e
404
+ end
405
end
406
407
true
-end
408
+end
0 commit comments