Browse Source

python3

main
John-Mark Gurney 3 months ago
parent
commit
be6a0ec164
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hyde/publisher.py

+ 1
- 1
hyde/publisher.py View File

@@ -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)


Loading…
Cancel
Save