[fix] remove global variables in oauth
This commit is contained in:
parent
924510610b
commit
462972ec84
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue