We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de61d5b commit e6b0885Copy full SHA for e6b0885
tivars/var.py
@@ -902,7 +902,7 @@ def open(cls, filename: str) -> Self:
902
"""
903
904
if cls._type_id is not None and \
905
- not any(filename.endswith(extension) for extension in cls.extensions.values()):
+ not any(filename.lower().endswith(extension) for extension in cls.extensions.values()):
906
warn(f"File extension .{filename.split('.')[-1]} not recognized for var type {cls}; "
907
f"attempting to read anyway.",
908
UserWarning)
0 commit comments