lib/pipeline/base.rb in tracksperanto-1.6.0 vs lib/pipeline/base.rb in tracksperanto-1.6.1
- old
+ new
@@ -160,9 +160,9 @@
handle
end
# Check that the trackers made by the parser are A-OK
def validate_trackers!(trackers)
- raise "Could not recover any trackers from this file. Wrong import format maybe?" if trackers.empty?
- trackers.reject!{|t| t.empty? }
+ trackers.reject!{|t| t.length < 2 }
+ raise "Could not recover any non-empty trackers from this file. Wrong import format maybe?" if trackers.empty?
end
end
\ No newline at end of file