Skip to content

Commit

Permalink
Add Crystal 0.34 support
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcsmith committed Apr 7, 2020
1 parent 04bb3c2 commit d8e129d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lucky_flow/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ class LuckyFlow::Server
private def start_session
driver = Selenium::Webdriver.new
Selenium::Session.new(driver, capabilities)
rescue e : Errno

# If less than 0.34.0
{% if compare_versions(Crystal::VERSION, "0.34.0") == -1 %}
rescue e : Errno
{% else %}
rescue e : IO::Error
{% end %}
retry_start_session(e)
end

Expand Down

0 comments on commit d8e129d

Please sign in to comment.