Skip to content

Commit 0a24708

Browse files
committed
fix(YAMLConfig): add a TypeError exception to handle in _parse_settings method
1 parent 99985fe commit 0a24708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/config/yaml_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _parse_setting(self, data: str):
2828
doc = yaml.safe_load(data)
2929
try:
3030
self.settings.update(doc["commitizen"])
31-
except KeyError:
31+
except (KeyError, TypeError):
3232
self.is_empty_config = True
3333

3434
def set_key(self, key, value):

0 commit comments

Comments
 (0)