From 47ed81feb95c092587c68deb07e247c3a4d29bff Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 26 Feb 2019 12:06:02 +0100 Subject: [PATCH] Remove unreachable print statement I don't think an exception could ever occur here. --- tools/data_source/upload.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/data_source/upload.py b/tools/data_source/upload.py index f8afc8e93c4..0c6ecf8325e 100644 --- a/tools/data_source/upload.py +++ b/tools/data_source/upload.py @@ -178,10 +178,7 @@ def add_composite_file(dataset, registry, output_path, files_path): # Find data type if dataset.file_type is not None: - try: - datatype = registry.get_datatype_by_extension(dataset.file_type) - except Exception: - print("Unable to instantiate the datatype object for the file type '%s'" % dataset.file_type) + datatype = registry.get_datatype_by_extension(dataset.file_type) def to_path(path_or_url): is_url = path_or_url.find('://') != -1 # todo fixme