Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/rev/5f9c14e679c1
Дата изменения: Unknown
Дата индексирования: Sun Feb 3 00:22:07 2013
Кодировка:
allpy: 5f9c14e679c1

allpy

changeset 1122:5f9c14e679c1

pair_cores: add error messages to rethrown exceptions
author Boris Nagaev <bnagaev@gmail.com>
date Fri, 21 Dec 2012 15:07:05 +0400
parents 835b55bfc6b2
children 3ce9ab9a5d29
files pair_cores/pair_cores.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/pair_cores/pair_cores.py	Fri Dec 21 15:04:53 2012 +0400
     1.2 +++ b/pair_cores/pair_cores.py	Fri Dec 21 15:07:05 2012 +0400
     1.3 @@ -54,7 +54,7 @@
     1.4          alignment = Alignment().append_file(input_file, format=input_file_format)
     1.5      except Exception, e:
     1.6          raise Exception("Can not read input file %s (%s: %s)" % \
     1.7 -            (input_file, e.__class__, e))
     1.8 +            (input_file, e.__class__, e.message))
     1.9      unique_sequence_names = set([s.name for s in alignment.sequences])
    1.10      if len(unique_sequence_names) != len(alignment.sequences):
    1.11          raise Exception("Duplicate sequence names in %s" % input_file)
    1.12 @@ -66,7 +66,7 @@
    1.13                  sequence.auto_pdb(pdb_getter=pdb_getter, read_local=read_local)
    1.14          except Exception, e:
    1.15              raise Exception("Can't load structure for sequence %s from file %s (%s: %s)" % \
    1.16 -                (sequence.name, input_file, e.__class__, e))
    1.17 +                (sequence.name, input_file, e.__class__, e.message))
    1.18      if len(alignment.sequences) < 2:
    1.19          raise Exception("Alignment from file %s has too few sequences" % input_file)
    1.20      block = Block.from_alignment(alignment)