Traceback (most recent call last):


 "/usr/lib/python2.7/site-packages/diamond/utils/scheduler.py", line 77, in collector_process

collector._run()


 "/usr/lib/python2.7/site-packages/diamond/collector.py", line 477, in _run

self.collect()


 "/usr/share/diamond/collectors/mysqlstat/mysqlstat.py", line 477, in collect

self.disconnect()


 "/usr/share/diamond/collectors/mysqlstat/mysqlstat.py", line 313, in disconnect

self.db.close()
AttributeError: 'NoneType' object has no attribute 'close'

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 2497, in _get_n_results

query={'spf': 'navigate'})


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 666, in _download_json

encoding=encoding, data=data, headers=headers, query=query)


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 634, in _download_webpage

res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 531, in _download_webpage_handle

urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 492, in _request_webpage

self.to_screen('%s: %s' % (video_id, note))


 "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 691, in to_screen

self._downloader.to_screen('[%s] %s' % (self.IE_NAME, msg))
AttributeError: 'NoneType' object has no attribute 'to_screen'
