Fixes #4718: Duplicate unnecessary line that is not used anymore
Merge pull request #362 from rjd22/3.3/bugfix/unnecessary_variable_in_exception

Fixes #4718: Duplicate unnecessary line that is not used anymore