Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
IOError is not part of urllib2.
Browse files Browse the repository at this point in the history
  • Loading branch information
mheffner committed Dec 6, 2011
1 parent f10cf43 commit 7cbdad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/collectd-librato.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def librato_flush_metrics(gauges, counters, data):
except urllib2.HTTPError as error:
collectd.warning('%s: Failed to send metrics to Librato (code %d)' % \
(plugin_name, error.code))
except urllib2.IOError as error:
collectd.warning('%s: IO Error when sending metrics Librato (%s)' % \
except IOError as error:
collectd.warning('%s: Error when sending metrics Librato (%s)' % \
(plugin_name, error.reason))


Expand Down

0 comments on commit 7cbdad0

Please sign in to comment.