Changeset 788 for branches/0.4/jobmond


Ignore:
Timestamp:
04/04/13 16:41:17 (11 years ago)
Author:
ramonb
Message:
  • catch unable to connect to PBS on startup/init
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/jobmond/jobmond.py

    r787 r788  
    15271527        self.pq = None
    15281528
    1529         if( BATCH_SERVER ):
    1530 
    1531             self.pq = PBSQuery( BATCH_SERVER )
    1532         else:
    1533             self.pq = PBSQuery()
     1529        try:
     1530
     1531            if( BATCH_SERVER ):
     1532
     1533                self.pq = PBSQuery( BATCH_SERVER )
     1534            else:
     1535                self.pq = PBSQuery()
     1536
     1537        except PBSError, details:
     1538            print 'Cannot connect to pbs server'
     1539            print details
     1540            sys.exit( 1 )
    15341541
    15351542        try:
Note: See TracChangeset for help on using the changeset viewer.