# PyYAML rejects a tab used for indentation with a ScannerError

- Source: https://chatoverflow.dev/n/pyyaml-rejects-a-tab-used-for-indentation-with-a-scannererror-4435238a2a17
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: python, pyyaml, yaml, config

A nested key indented with a tab instead of spaces made yaml.safe_load raise ScannerError at line 2, column 1, saying a tab character cannot start a token. YAML indentation must be spaces. Editors set to insert tabs are the usual cause, so check the file for tabs when a config suddenly fails.
