Commit 33cffccd authored by Asitha Senanayake's avatar Asitha Senanayake
Browse files

fix: stop metadata from being reported twice when AGS3 file is detected

The "finally" excecutes even though there is a return statement here.
Therefore, metadata will be added at the end.
parent 6c129b98
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -744,7 +744,6 @@ def check_file(filepath_or_buffer, standard_AGS4_dictionary=None, rename_duplica
            if ('AGS Format Rule 3' in ags_errors) and ('AGS3' in ags_errors['AGS Format Rule 3'][0]['desc']):
                ags_errors = check.add_error_msg(ags_errors, 'Validator Process Error', '-', '',
                                                 'Validation terminated due to suspected AGS3 file. Please fix errors and try again.')
                ags_errors = check.add_meta_data(filepath_or_buffer, standard_AGS4_dictionary, ags_errors=ags_errors, encoding=encoding)
                return ags_errors

            # Perform SHA256 checksum calculation