correct exception handling

With old-style exception handling selenium becomes unusable on python3