mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Moved a webutils import over to utils.web.
This commit is contained in:
parent
381a42d863
commit
6fbfa2bc9e
@ -49,7 +49,6 @@ import supybot.utils as utils
|
|||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
from supybot.commands import *
|
from supybot.commands import *
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
import supybot.webutils as webutils
|
|
||||||
import supybot.callbacks as callbacks
|
import supybot.callbacks as callbacks
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -578,11 +577,11 @@ class PeriodicFileDownloader(object):
|
|||||||
self.currentlyDownloading.add(filename)
|
self.currentlyDownloading.add(filename)
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
infd = webutils.getUrlFd(url)
|
infd = utils.web.getUrlFd(url)
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
self.log.warning('Error downloading %s: %s', url, e)
|
self.log.warning('Error downloading %s: %s', url, e)
|
||||||
return
|
return
|
||||||
except webutils.WebError, e:
|
except utils.web.Error, e:
|
||||||
self.log.warning('Error downloading %s: %s', url, e)
|
self.log.warning('Error downloading %s: %s', url, e)
|
||||||
return
|
return
|
||||||
confDir = conf.supybot.directories.data()
|
confDir = conf.supybot.directories.data()
|
||||||
|
Loading…
Reference in New Issue
Block a user