def upload(filename, config):
"""Upload .su3 file with transports"""
if "transports" in config and "enabled" in config["transports"]:
for t in config["transports"]["enabled"].split():
if t in config:
tconf = config[t]
else:
tconf = None
try:
importlib.import_module("pyseeder.transports.{}".format(t)) \
.run(filename, tconf)
except ImportError:
raise PyseederException(
"{} transport can't be loaded".format(t))
except TransportException as e:
log.error("Transport error: {}".format(e))
评论列表
文章目录