Commit 98cef570 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by Commit Bot

git cl: _RietveldChangelistImpl should always have non-None auth_config.

TBR=phajdan.jr@chromium.org,sdefresne@chromium.org

Change-Id: I95cc6e61d044fd983c613fa7eeb21c8b77d7cee0
Reviewed-on: https://chromium-review.googlesource.com/432356Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
parent f3a20aed
......@@ -1794,7 +1794,7 @@ class _RietveldChangelistImpl(_ChangelistCodereviewBase):
settings.GetDefaultServerUrl()
self._rietveld_server = rietveld_server
self._auth_config = auth_config
self._auth_config = auth_config or auth.make_auth_config()
self._props = None
self._rpc_server = None
......@@ -1976,7 +1976,7 @@ class _RietveldChangelistImpl(_ChangelistCodereviewBase):
if not self._rpc_server:
self._rpc_server = rietveld.CachingRietveld(
self.GetCodereviewServer(),
self._auth_config or auth.make_auth_config())
self._auth_config)
return self._rpc_server
@classmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment