Please don't do an inline rescue like this.  A trailing rescue is a code smell that has been used improperly and led to bug before.  `rescue` and exception handling in general should only be used for code paths you don't expect to happen, but we totally except stuff not to respond to modules, so check if res is `nil` and then produce a string to use in the `print_error` instead of this inline rescue.

```ruby
if res
  formatted_code = res.code
else
  formatted_code = '= No Response'
end

print_error ("Ektron CMS400.NET login page not found at #{target_url}  [HTTP #{formatted_code}]")
```