A large deviation principle for Wigner matrices without gaussian tails