redmica / redmine_ip_filter

3 stars 3 forks source link

Rescue IPAddr::Error instead of generic StandardError #20

Closed vividtone closed 4 years ago

vividtone commented 4 years ago

Catching StandardError may cause a problem of ignoring unexpected exceptions that should not be ignored.

takenory commented 4 years ago

Surely only IPAddr::Error should be rescue in this case. Thx for your suggestion :D