[#7047] Fixed substitute_extensions not switching back on exception

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>
2 files changed