joomla/joomla-platform — comment on commit f2eefd870c3bfd59b2b638ead31540673df56a67
File: libraries/joomla/installer/adapters/template.php line 126
By realityking:

Probably better to catch the specific extension thrown.