Changeset 27


Ignore:
Timestamp:
04/01/05 09:59:51 (19 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

Added try/except, to catch a bug that occures from time to time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r22 r27  
    415415                update_string = '%s:%s' %(timestamp, val)
    416416
    417                 rrdtool.update( str(rrd_file), str(update_string) )
     417                try:
     418                        rrdtool.update( str(rrd_file), str(update_string) )
     419                except error, detail:
     420                        debug_msg( 0, 'EXCEPTION! While trying to update rrd:' )
     421                        debug_msg( 0, '\trrd %s with %s' %( str(rrd_file), update_string ) )
     422                        debug_msg( 0, detail )
     423               
    418424                debug_msg( 9, 'updated rrd %s with %s' %( str(rrd_file), update_string ) )
    419425
Note: See TracChangeset for help on using the changeset viewer.