-
Julien "_FrnchFrgg_" Rivaud authored
The code extracted both the basename and the extension where it needed only the extension. Also, when there was a "." in the path, the search for it was done twice. Prefer a try/except statement which is better especially since the error case is uncommon.
1d5aa737