1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/0c56502c7fd7/ changeset: 0c56502c7fd7 user: greg date: 2012-10-24 17:44:32 summary: Apply patch from Peter Cock which issues a warning if loading a loc file with inconsistent numbers of tabs. affected #: 1 file diff -r 7c671a79de1ed98fb2b7253e91fae551c0222a29 -r 0c56502c7fd78431001012cb56b3df1224472769 lib/galaxy/tools/parameters/dynamic_options.py --- a/lib/galaxy/tools/parameters/dynamic_options.py +++ b/lib/galaxy/tools/parameters/dynamic_options.py @@ -471,6 +471,7 @@ def parse_file_fields( self, reader ): rval = [] + field_count = None for line in reader: if line.startswith( '#' ) or ( self.line_startswith and not line.startswith( self.line_startswith ) ): continue @@ -478,6 +479,16 @@ if line: fields = line.split( self.separator ) if self.largest_index < len( fields ): + if not field_count: + field_count = len( fields ) + elif field_count != len( fields ): + try: + name = reader.name + except AttributeError: + name = "a configuration file" + # Perhaps this should be an error, but even a warning is useful. + log.warn( "Inconsistent number of fields (%i vs %i) in %s using separator %r, check line: %r" % \ + ( field_count, len( fields ), name, self.separator, line ) ) rval.append( fields ) return rval Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.