diff options
| author | 2013-02-27 09:13:24 -0300 | |
|---|---|---|
| committer | 2013-02-27 09:13:24 -0300 | |
| commit | 878ba1152ebc64a4a2609d23c9e400a6111db642 (patch) | |
| tree | 7672c12a59dbab1864606109e4f2b1dd7534043c /nikola/console.py | |
| parent | a40930043121a4b60de8526d58417761a54ab718 (diff) | |
Imported Upstream version 5.3upstream/5.3
Diffstat (limited to 'nikola/console.py')
| -rw-r--r-- | nikola/console.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/nikola/console.py b/nikola/console.py index ad36010..fae0ecd 100644 --- a/nikola/console.py +++ b/nikola/console.py @@ -1,8 +1,11 @@ from __future__ import print_function, unicode_literals from nikola import Nikola -import conf -SITE = Nikola(**conf.__dict__) -SITE.scan_posts() -print("You can now access your configuration as conf and your site engine " - "as SITE") +try: + import conf + SITE = Nikola(**conf.__dict__) + SITE.scan_posts() + print("You can now access your configuration as conf and your site engine " + "as SITE") +except ImportError: + print("No configuration found.") |
