Ignore:
Timestamp:
Jun 14, 2024, 9:41:40 PM (5 months ago)
Author:
chronos
Message:
  • Fixed: Avoid error in case of invalid import data.
  • Modified: Updated Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormImport.pas

    r170 r172  
    136136  if not FileExists(EditInputFile.Text) then Exit;
    137137
    138   Table.SetInput(TableFormat, LoadFileToStr(EditInputFile.Text));
    139   Table.Title := ExtractFileNameWithoutExt(EditInputFile.Text);
     138  try
     139    Table.SetInput(TableFormat, LoadFileToStr(EditInputFile.Text));
     140    Table.Title := ExtractFileNameWithoutExt(EditInputFile.Text);
     141  except
     142    // It may fail due to invalid format
     143  end;
    140144end;
    141145
Note: See TracChangeset for help on using the changeset viewer.