~edwargix/git.sr.ht

c437b1d85d1155c32c0a63d57173b9698a0540f2 — Drew DeVault 7 years ago b867038
Handle un-decodable "text" data
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 152,7 152,7 @@ def tree(owner, repo, ref, path):
                try:
                    data = blob.data.decode()
                except:
                    pass
                    data = '[unable to decode]'
            return render_template("blob.html", view="tree",
                    owner=owner, repo=repo, ref=ref, path=path, entry=entry,
                    blob=blob, data=data, commit=commit,