Update tja.py

This commit is contained in:
Anthony Samms
2025-11-21 23:56:24 -05:00
parent 3f22050169
commit e506f70baf

View File

@@ -378,7 +378,7 @@ class TJAParser:
elif item.startswith('WAVE'): elif item.startswith('WAVE'):
data = item.split(':')[1] data = item.split(':')[1]
if not Path(self.file_path.parent / data.strip()).exists(): if not Path(self.file_path.parent / data.strip()).exists():
logger.error(data, self.file_path) logger.error(data, str(self.file_path))
logger.warning(f"Invalid WAVE value: {data} in TJA file {self.file_path}") logger.warning(f"Invalid WAVE value: {data} in TJA file {self.file_path}")
self.metadata.wave = Path() self.metadata.wave = Path()
else: else: