Changeset 1676 for branches/alma
- Timestamp:
- 01/27/10 11:43:10 (15 years ago)
- Location:
- branches/alma/python
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/__init__.py
r1662 r1676 233 233 except ValueError, msg: 234 234 #print ('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % (val, cnt, line, fname, msg)) 235 asaplog.push('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % (val, cnt, line, fname, msg.message))235 asaplog.push('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % (val, cnt, line, fname, str(msg))) 236 236 print_log('WARN') 237 237 continue -
branches/alma/python/asapfitter.py
r1632 r1676 178 178 #print msg 179 179 print_log() 180 asaplog.push( msg.message)180 asaplog.push(str(msg)) 181 181 print_log('ERROR') 182 182 else: -
branches/alma/python/asaplotbase.py
r1627 r1676 450 450 #print 'Failed to save %s: Error msg was\n\n%s' % (fname, err) 451 451 print_log() 452 asaplog.push('Failed to save %s: Error msg was\n\n%s' % (fname, msg.message))452 asaplog.push('Failed to save %s: Error msg was\n\n%s' % (fname, str(msg))) 453 453 print_log( 'ERROR' ) 454 454 return -
branches/alma/python/scantable.py
r1673 r1676 770 770 #print msg 771 771 print_log() 772 asaplog.push( msg.message)772 asaplog.push( str(msg) ) 773 773 print_log( 'ERROR' ) 774 774 else: … … 819 819 #print msg 820 820 print_log() 821 asaplog.push( msg.message)821 asaplog.push( str(msg) ) 822 822 print_log( 'ERROR' ) 823 823 return … … 838 838 if rcParams['verbose']: 839 839 print_log() 840 asaplog.push( msg.message)840 asaplog.push( str(msg) ) 841 841 print_log('ERROR') 842 842 return … … 873 873 #print msg 874 874 print_log() 875 asaplog.push( msg.message)875 asaplog.push( str(msg) ) 876 876 print_log( 'ERROR' ) 877 877 return … … 1255 1255 #print msg 1256 1256 print_log() 1257 asaplog.push( msg.message)1257 asaplog.push( str(msg) ) 1258 1258 print_log( 'ERROR' ) 1259 1259 return … … 1482 1482 #print msg 1483 1483 print_log() 1484 asaplog.push( msg.message)1484 asaplog.push( str(msg) ) 1485 1485 print_log( 'ERROR' ) 1486 1486 return … … 1640 1640 #print msg 1641 1641 print_log() 1642 asaplog.push( msg.message)1642 asaplog.push( str(msg) ) 1643 1643 print_log( 'ERROR' ) 1644 1644 return
Note:
See TracChangeset
for help on using the changeset viewer.