(self)
| 34 | |
| 35 | @property |
| 36 | def content(self): |
| 37 | if self._content is None: |
| 38 | try: |
| 39 | content_base64 = github_client(self.git_url)["content"] |
| 40 | decode_bytes = base64.decodebytes(content_base64.encode("utf-8")) |
| 41 | self._content = decode_bytes.decode("utf-8", errors="replace") |
| 42 | except Exception as e: |
| 43 | logger.info("error on {}".format(self.git_url)) |
| 44 | logger.exception(e) |
| 45 | self._content = "" |
| 46 | |
| 47 | return self._content |
| 48 | else: |
| 49 | return self._content |
| 50 | |
| 51 | @property |
| 52 | def commit_date(self): |
nothing calls this directly
no test coverage detected