title: Getting an error 'BadRequestException' object has no attribute 'get'
body: <p>I am a newbie in python and django. Trying to setup django to work with Dropbox but keep getting error "'BadRequestException' object has no attribute 'get'". Here is my code.</p>
  
  <pre><code>def get_dropbox_auth_flow(web_app_session):
      APP_KEY= '****'
      APP_SECRET = '****'
      redirect_uri = "http://localhost:8000/dropbox"
      return DropboxOAuth2Flow(APP_KEY, APP_SECRET, redirect_uri, web_app_session, "dropbox-auth-csrf-token")
  
  # URL handler for /dropbox-auth-start
  def dropbox_auth_start(request):
      authorize_url = get_dropbox_auth_flow(request.session).start()
      return HttpResponseRedirect(authorize_url)
  
  # URL handler for /dropbox-auth-finish
  def dropbox_auth_finish(request):
      try:
          access_token, user_id, url_state = get_dropbox_auth_flow(request.session).finish(request.GET)
          # oauth_result = get_dropbox_auth_flow(request.session).finish(request.query_params)
      except oauth.BadRequestException as e:
          return e
      except oauth.BadStateException as e:
          # Start the auth flow again.
          return HttpResponseRedirect("http://localhost:8000/dropbox_auth_start")
      except oauth.CsrfException as e:
          return HttpResponseForbidden()
      except oauth.NotApprovedException as e:
          raise e
      except oauth.ProviderException as e:
          raise e
  </code></pre>
  
  <p>I am following the documentation <a href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#module-dropbox.oauth" rel="nofollow noreferrer">here</a></p>
  
  <p>Adding traceback <a href="https://pastebin.com/VubTWW3i" rel="nofollow noreferrer">here</a></p>