Fix: get_shard_id failing when setting new token
Fetching the `DEBUG` flag from settings