dulwich head throws KeyError if non-existant...