| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -204,8 +204,10 @@ def _get_values_from_helper(self): | |||
| 204 | 204 | """Update attributes, which may get values from an external helper program""" | |
| 205 | 205 | for attr in HELPER_ATTRIBUTES: | |
| 206 | 206 | value = getattr(self, attr) | |
| 207 | - _value_lower = value.lower().strip() | ||
| 208 | - if isinstance(value, str) and _value_lower.startswith(HELPER_PREFIX): | ||
| 207 | + if not isinstance(value, str): | ||
| 208 | + continue | ||
| 209 | + | ||
| 210 | + if value.lower().strip().startswith(HELPER_PREFIX): | ||
| 209 | 211 | helper = expanduser(value[len(HELPER_PREFIX) :].strip()) | |
| 210 | 212 | value = subprocess.check_output([helper]).decode("utf-8").strip() | |
| 211 | 213 | setattr(self, attr, value) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments