|
@@ -45,7 +45,7 @@ class Publisher(with_metaclass(abc.ABCMeta)): |
|
|
if not settings: |
|
|
if not settings: |
|
|
# Find the first configured publisher |
|
|
# Find the first configured publisher |
|
|
try: |
|
|
try: |
|
|
publisher = site.config.publisher.__dict__.iterkeys().next() |
|
|
|
|
|
|
|
|
publisher = next(iter(site.config.publisher.__dict__.keys())) |
|
|
logger.warning( |
|
|
logger.warning( |
|
|
"No default publisher configured. Using: %s" % publisher) |
|
|
"No default publisher configured. Using: %s" % publisher) |
|
|
settings = attrgetter("publisher.%s" % publisher)(site.config) |
|
|
settings = attrgetter("publisher.%s" % publisher)(site.config) |
|
|