MCPcopy Create free account
hub / github.com/git/git / MetadataDecodingException

Class MetadataDecodingException

git-p4.py:236–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236class MetadataDecodingException(Exception):
237 def __init__(self, input_string):
238 self.input_string = input_string
239
240 def __str__(self):
241 return """Decoding perforce metadata failed!
242The failing string was:
243---
244{}
245---
246Consider setting the git-p4.metadataDecodingStrategy config option to
247'fallback', to allow metadata to be decoded using a fallback encoding,
248defaulting to cp1252.""".format(self.input_string)
249
250
251encoding_fallback_warning_issued = False

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected