Traceback (most recent call last):


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs

doc.save()


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/model/document.py", line 230, in save

return self._save(*args, **kwargs)


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/model/document.py", line 263, in _save

self.run_before_save_methods()


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/model/document.py", line 772, in run_before_save_methods

self.run_method("validate")


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/model/document.py", line 666, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/model/document.py", line 892, in composer

return composed(self, method, *args, **kwargs)


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/model/document.py", line 875, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/model/document.py", line 660, in 

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/core/doctype/user/user.py", line 53, in validate

self.password_strength_test()


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/core/doctype/user/user.py", line 417, in password_strength_test

result = test_password_strength(self.__new_password, '', None, user_data)


 "/home/frappe/benches/bench-2017-06-21/apps/frappe/frappe/core/doctype/user/user.py", line 547, in test_password_strength

enable_password_policy = cint(password_policy.get("enable_password_policy", 0))
AttributeError: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):



 "manage.py", line 11, in <module>


execute_from_command_line(sys.argv)



 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line


utility.execute()



 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 356, in execute


self.fetch_command(subcommand).run_from_argv(self.argv)



 "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 283, in run_from_argv


self.execute(*args, **cmd_options)



 "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 330, in execute


output = self.handle(*args, **options)



 "/usr/local/lib/python2.7/dist-packages/rest_framework/management/commands/generateschema.py", line 31, in handle


output = renderer.render(schema, renderer_context={})



 "/usr/local/lib/python2.7/dist-packages/rest_framework/renderers.py", line 1036, in render


structure = self.get_structure(data)



 "/usr/local/lib/python2.7/dist-packages/rest_framework/renderers.py", line 1022, in get_structure


'paths': self.get_paths(data)



 "/usr/local/lib/python2.7/dist-packages/rest_framework/renderers.py", line 1004, in get_paths


path = urlparse.urlparse(link.url).path

AttributeError: 'function' object has no attribute 'urlparse' 
