[fix] remove global variables in oauth

This commit is contained in:
Rushabh Mehta 2016-11-11 14:59:27 +05:30
parent 924510610b
commit 462972ec84

View file

@ -7,7 +7,7 @@ from urlparse import urlparse
from frappe.integrations.doctype.oauth_provider_settings.oauth_provider_settings import get_oauth_settings
def get_oauth_server():
if not getattr(frappe.local, 'oauth_server'):
if not getattr(frappe.local, 'oauth_server', None):
oauth_validator = OAuthWebRequestValidator()
frappe.local.oauth_server = WebApplicationServer(oauth_validator)