From 0bb7612977a44422acdf9c7d559d555ece1d17da Mon Sep 17 00:00:00 2001 From: Anthony Bretaudeau Date: Tue, 21 Nov 2017 10:33:22 +0100 Subject: [PATCH] don't read too much --- lib/galaxy/datatypes/binary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/datatypes/binary.py b/lib/galaxy/datatypes/binary.py index 6d1813a131d..22a728d222b 100644 --- a/lib/galaxy/datatypes/binary.py +++ b/lib/galaxy/datatypes/binary.py @@ -1808,7 +1808,7 @@ class ICM(Binary): dataset.blurb = 'file purged from disk' def sniff(self, dataset): - line = open(dataset).readline() + line = open(dataset).read(100) if '>ver = ' in line and 'len = ' in line and 'depth = ' in line and 'periodicity =' in line and 'nodes = ' in line: return True