We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac6fa1 commit 9dfb4cdCopy full SHA for 9dfb4cd
gitlab/config.py
@@ -204,8 +204,10 @@ def _get_values_from_helper(self):
204
"""Update attributes, which may get values from an external helper program"""
205
for attr in HELPER_ATTRIBUTES:
206
value = getattr(self, attr)
207
- _value_lower = value.lower().strip()
208
- if isinstance(value, str) and _value_lower.startswith(HELPER_PREFIX):
+ if not isinstance(value, str):
+ continue
209
+
210
+ if value.lower().strip().startswith(HELPER_PREFIX):
211
helper = expanduser(value[len(HELPER_PREFIX) :].strip())
212
value = subprocess.check_output([helper]).decode("utf-8").strip()
213
setattr(self, attr, value)
0 commit comments