## Description of the problem, including code/CLI snippet Duplicated code found in gitlab/config.py . I think one should be get from 'global'. ```python self.http_username = None self.http_password = None try: self.http_username = self._config.get(self.gitlab_id, "http_username") self.http_password = self._config.get(self.gitlab_id, "http_password") except Exception: pass self.http_username = None self.http_password = None try: self.http_username = self._config.get(self.gitlab_id, "http_username") self.http_password = self._config.get(self.gitlab_id, "http_password") except Exception: pass ``` ## Expected Behavior ## Actual Behavior ## Specifications - python-gitlab version: python-gitlab==2.2.0 - API version you are using (v3/v4): v4 - Gitlab server version (or gitlab.com):
Activity
max-wittig commentedon May 12, 2020
I will take a look soon.
fix(config): fix duplicate code