Commits

Daniel Ostrowski committed 7c93645

fix for problems with get_config_for without providing using kwarg

Comments (0)

Files changed (1)

riakdoc/documents.py

         return config.get()
 
     @classmethod
-    def get_config_for(cls, using='DEFAULT'):
+    def get_config_for(cls, using=None):
         """
         Get the configuration for a given connection name.
 
         @type using: str
         @rtype: dict
         """
+        using = using or 'DEFAULT'
         try:
             return cls.get_config()['DATABASES'][using]
         except KeyError: