Skip to content

Commit

Permalink
Fix missing exception types when loading checking ConPty.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverPhoenix99 committed Jul 5, 2021
1 parent 7b7612c commit 74d81f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/helpers/platform.rb
Expand Up @@ -58,7 +58,7 @@ def self.windows_conpty?
kernel32.GetConsoleMode(stdout_handle, mode) != 0 &&
mode.value & enable_virtual_terminal_processing != 0

rescue
rescue LoadError, Fiddle::DLError
false
ensure
Fiddle.free mode.to_ptr if mode
Expand Down

0 comments on commit 74d81f3

Please sign in to comment.