mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix get_writer signal received result unpacking
This commit is contained in:
parent
fd231b6ce2
commit
f00fc944fb
1 changed files with 2 additions and 2 deletions
|
|
@ -209,13 +209,13 @@ class Pelican(object):
|
|||
return generators
|
||||
|
||||
def get_writer(self):
|
||||
writers = [ w for w in signals.get_writer.send(self)
|
||||
writers = [ w for (_, w) in signals.get_writer.send(self)
|
||||
if isinstance(w, type) ]
|
||||
writers_found = len(writers)
|
||||
if writers_found == 0:
|
||||
return Writer(self.output_path, settings=self.settings)
|
||||
else:
|
||||
_, writer = writers[0]
|
||||
writer = writers[0]
|
||||
if writers_found == 1:
|
||||
logger.debug('Found writer: {}'.format(writer))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue