By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

python-rrdtool try except rrdtool.error module object has no attribute error

P: 20
I have this code that gives this error on Linux and will be grateful if you can help
Expand|Select|Wrap|Line Numbers
  1. import rrdtool
  2.  
  3. try:      
  4.       ret_asd = rrdtool.update(myfile.rrd,'N:%s:%s' %(metric1, metric2));    
  5. except rrdtool.error, e:
  6.       print e 
  7.  
When i run the above i get the below error

Expand|Select|Wrap|Line Numbers
  1. except rrdtool.error, e:
  2. AttributeError: 'module' object has no attribute 'error'
  3.  
The code is intended to skip the below error
Expand|Select|Wrap|Line Numbers
  1. illegal attempt to update using time 1363358441 when last update time is 1363358441 (minimum one second step)
  2.  
Appreciate if you can help me get a solution for this

Thanks
Oct 20 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.