| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -501,14 +501,14 @@ def _deserialize(self, stream): | |||
| 501 | 501 | ||
| 502 | 502 | try: | |
| 503 | 503 | self.author, self.authored_date, self.author_tz_offset = \ | |
| 504 | - parse_actor_and_date(author_line.decode(self.encoding)) | ||
| 504 | + parse_actor_and_date(author_line.decode(self.encoding, errors='replace')) | ||
| 505 | 505 | except UnicodeDecodeError: | |
| 506 | 506 | log.error("Failed to decode author line '%s' using encoding %s", author_line, self.encoding, | |
| 507 | 507 | exc_info=True) | |
| 508 | 508 | ||
| 509 | 509 | try: | |
| 510 | 510 | self.committer, self.committed_date, self.committer_tz_offset = \ | |
| 511 | - parse_actor_and_date(committer_line.decode(self.encoding)) | ||
| 511 | + parse_actor_and_date(committer_line.decode(self.encoding, errors='replace')) | ||
| 512 | 512 | except UnicodeDecodeError: | |
| 513 | 513 | log.error("Failed to decode committer line '%s' using encoding %s", committer_line, self.encoding, | |
| 514 | 514 | exc_info=True) | |
@@ -518,7 +518,7 @@ def _deserialize(self, stream): | |||
| 518 | 518 | # The end of our message stream is marked with a newline that we strip | |
| 519 | 519 | self.message = stream.read() | |
| 520 | 520 | try: | |
| 521 | - self.message = self.message.decode(self.encoding) | ||
| 521 | + self.message = self.message.decode(self.encoding, errors='replace') | ||
| 522 | 522 | except UnicodeDecodeError: | |
| 523 | 523 | log.error("Failed to decode message '%s' using encoding %s", self.message, self.encoding, exc_info=True) | |
| 524 | 524 | # END exception handling | |
| Back | FazBrowse Home | New Git URL |
0 commit comments