Mercurial > hg > MPIWGWeb
changeset 70:fd167f42cf34
merge
author | dwinter |
---|---|
date | Sun, 05 May 2013 12:33:53 +0200 |
parents | c86ee1081b62 |
children | ad2e970ffd9f |
files | MPIWGRoot.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGRoot.py Fri May 03 11:39:34 2013 +0200 +++ b/MPIWGRoot.py Sun May 05 12:33:53 2013 +0200 @@ -32,8 +32,11 @@ def sortWeight(x,y): - x1=int(getattr(x[1],'weight','0')) - y1=int(getattr(y[1],'weight','0')) + try: + x1=int(getattr(x[1],'weight','0')) + y1=int(getattr(y[1],'weight','0')) + except: + return 0 return cmp(x1,y1)