Changeset 486 for trunk/jobarchived


Ignore:
Timestamp:
02/22/08 15:13:55 (13 years ago)
Author:
bastiaans
Message:

jobarchived/jobarchived.py:

  • catch PyPgSQL import error
  • don't use debug_message from loadConfig
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobarchived/jobarchived.py

    r473 r486  
    158158                MODRRDTOOL              = False
    159159
    160                 debug_msg( 0, "ERROR: py-rrdtool import FAILED: failing back to DEPRECATED use of rrdtool binary. This will slow down jobarchived significantly!" )
     160                print "ERROR: py-rrdtool import FAILED: failing back to DEPRECATED use of rrdtool binary. This will slow down jobarchived significantly!"
    161161
    162162                RRDTOOL                 = cfg.get( 'DEFAULT', 'RRDTOOL' )
     
    207207
    208208import xml.sax, xml.sax.handler, socket, string, os, os.path, time, thread, threading, random, re
    209 from pyPgSQL import PgSQL
     209
     210try:
     211        from pyPgSQL import PgSQL
     212
     213except ImportError, details:
     214
     215        print "FATAL ERROR: pyPgSQL python module not found"
     216        sys.exit( 1 )
    210217
    211218# Orginal from Andre van der Vlies <andre@vandervlies.xs4all.nl> for MySQL. Changed
Note: See TracChangeset for help on using the changeset viewer.