diff piecrust/publishing/base.py @ 805:fd694f1297c7

config: Cleanup config loading code. Add support for a `local.yml` config.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 10 Oct 2016 21:41:59 -0700
parents f69fdc601845
children 13e8b50a2113
line wrap: on
line diff
--- a/piecrust/publishing/base.py	Wed Oct 12 21:01:42 2016 -0700
+++ b/piecrust/publishing/base.py	Mon Oct 10 21:41:59 2016 -0700
@@ -45,7 +45,7 @@
     def getConfigValue(self, name, default_value=None):
         if self.has_url_config:
             raise Exception("This publisher only has a URL configuration.")
-        return try_get_dict_value(self.config, name, default_value)
+        return try_get_dict_value(self.config, name, default=default_value)
 
     def run(self, ctx):
         raise NotImplementedError()