1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Talha Mansoor a7152716e2 Receive the two values returned from get_instance()
`get_instance()` returns two values. Old code, instead of unpacking two
values in two variables, placed the tuple in a single variable
`pelican`.

Later in the same block when `pelican.run()` was called, it resulted in
error.

```
-> Modified: content, theme, settings. re-generating...
CRITICAL: ("'tuple' object has no attribute 'run'",)
CRITICAL: 'tuple' object has no attribute 'run'
Traceback (most recent call last):
  File "/Users/talha/Repos/VirtualEnvs/pelican-dev/bin/pelican", line 8,
  in <module>
    load_entry_point('pelican==3.3', 'console_scripts', 'pelican')()
    File
    "/Users/talha/Repos/VirtualEnvs/pelican-dev/lib/python2.7/site-packages/pelican-3.3-py2.7.egg/pelican/__init__.py",
    line 353, in main pelican.run()
```

Either the returned value should be unpacked properly or
`pelican[0].run` should be called.
2013-08-11 01:43:27 +05:00
..
tests Merge pull request #1011 from saimn/readers 2013-08-07 12:34:22 -07:00
themes Support TAGS_* and AUTHORS_* by default. 2013-08-05 19:16:00 +02:00
tools fix missing 'kind' arg in importer 2013-08-04 17:21:35 +08:00
__init__.py Receive the two values returned from get_instance() 2013-08-11 01:43:27 +05:00
contents.py do slug_substitutions on category and author ... 2013-07-14 23:01:16 +10:00
generators.py Refactor readers and remove MARKUP 2013-08-06 23:42:41 +02:00
log.py fix for issue #761: handle unicode correctly in summary for Markdown 2013-04-03 19:38:42 -04:00
paginator.py Create new formatting context dict instead of using self.__dict__ 2013-08-03 13:49:43 -07:00
readers.py Don't warn too loud about missing dependencies. 2013-08-07 22:43:08 +02:00
rstdirectives.py Added more pygments options for code blocks 2013-08-05 22:50:49 -07:00
server.py add port option to pelican.server 2013-07-07 12:44:21 +02:00
settings.py Merge pull request #1011 from saimn/readers 2013-08-07 12:34:22 -07:00
signals.py Add a signal to give access to the dict of Reader classes. 2013-08-07 00:36:40 +02:00
urlwrappers.py Allow text substitutions when generating slugs 2013-07-04 12:17:21 +01:00
utils.py Refactor pelican_open using contextmanager 2013-08-04 14:47:03 +02:00
writers.py Delib. overriding and overwrite detect. Fixes #938 2013-08-04 12:09:26 +01:00