You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As title.
Python version: 3.9
pysubs2 version: 1.6.1
Operating system: Windows 10
Description:
Code above was ran in an attempt to open a file with extension .atpj (which is json-based subtitle project file for the subtitle tool ArcTime Pro; which has not an extension that is supported by pysubs2). Exception was raised at line 38 as expected, but it was a KeyError instead of UnknownFileExtensionError.
It seems that loading was done in an assumption that this json subtitle format would be similar to the type(s?) of json what the module is supposed to handle, henceforth directly loaded without looking at the extension name.
The text was updated successfully, but these errors were encountered:
The exception raised in this case (unrecognized content when reading the file) is FormatAutodetectionError, not UnknownFileExtensionError (that happens when saving the file, eg. subs.save("foo.xyz") would raise UnknownFileExtensionError).
As title.
Python version: 3.9
pysubs2 version: 1.6.1
Operating system: Windows 10
Description:
Code above was ran in an attempt to open a file with extension .atpj (which is json-based subtitle project file for the subtitle tool ArcTime Pro; which has not an extension that is supported by pysubs2). Exception was raised at line 38 as expected, but it was a KeyError instead of UnknownFileExtensionError.
It seems that loading was done in an assumption that this json subtitle format would be similar to the type(s?) of json what the module is supposed to handle, henceforth directly loaded without looking at the extension name.
The text was updated successfully, but these errors were encountered: