This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new c68a5ff  Use default correctly in User.get_tool_data
c68a5ff is described below

commit c68a5ff25dc861a430fca5ec028d185272d57dd5
Author: Dave Brondsema <dbronds...@slashdotmedia.com>
AuthorDate: Wed Oct 13 18:03:03 2021 -0400

    Use default correctly in User.get_tool_data
---
 Allura/allura/model/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
index fb17054..dd47515 100644
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -687,7 +687,7 @@ class User(MappedClass, ActivityNode, ActivityObject, 
SearchIndexable):
         return plugin.AuthenticationProvider.get(request).by_username(name)
 
     def get_tool_data(self, tool, key, default=None):
-        return self.tool_data.get(tool, {}).get(key, None)
+        return self.tool_data.get(tool, {}).get(key, default)
 
     def set_tool_data(self, tool, **kw):
         d = self.tool_data.setdefault(tool, {})

Reply via email to