Browse Source

[fix] remove global variables in oauth

version-14
Rushabh Mehta 8 years ago
parent
commit
462972ec84
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/integration_broker/oauth2.py

+ 1
- 1
frappe/integration_broker/oauth2.py 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)



Loading…
Cancel
Save