mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
catch exceptions in build_sniff_from_prefix
if sniff_prefix raises ant exception the sniffer should return False Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
This commit is contained in:
co-authored by
Marius van den Beek
parent
012a7e54f2
commit
304e1cdc38
@@ -664,7 +664,10 @@ def build_sniff_from_prefix(klass):
|
||||
if hasattr(self, "compressed_format"):
|
||||
if self.compressed_format != file_prefix.compressed_format:
|
||||
return False
|
||||
return self.sniff_prefix(file_prefix)
|
||||
try:
|
||||
return self.sniff_prefix(file_prefix)
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
klass.sniff = auto_sniff
|
||||
return klass
|
||||
|
||||
Reference in New Issue
Block a user