Skip to content

Commit

Permalink
remove puts
Browse files Browse the repository at this point in the history
  • Loading branch information
wuminzhe committed Sep 8, 2023
1 parent 4ce8a5c commit 4c852f7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,9 @@
render_json TxFee.crab_fee
end
rescue StandardError => e
if e.message.include?('500')
puts '------------------------'
raise 'data source error, try again later'
else
puts '2------------------------'
raise e
end
raise 'data source error, try again later' if e.message.include?('500')

raise e
end
end

Expand Down

0 comments on commit 4c852f7

Please sign in to comment.