Fixes deprecated method when calling Whoops