Improve exception handling for blacklist