Fix new B018 errors raised by ruff 0.0.260

This commit is contained in:
Nicola Soranzo
2023-04-13 16:53:01 +01:00
parent 2c5f8961cb
commit 64af46c4ae
15 changed files with 23 additions and 30 deletions
+1 -3
View File
@@ -123,9 +123,7 @@ def add_file(dataset, registry, output_path: str) -> Dict[str, str]:
# auto_decompress is a request flag that can be swapped off to prevent Galaxy from automatically
# decompressing archive files before sniffing.
auto_decompress = dataset.get("auto_decompress", True)
try:
dataset.file_type
except AttributeError:
if not hasattr(dataset, "file_type"):
raise UploadProblemException("Unable to process uploaded file, missing file_type parameter.")
if dataset.type == "url":