syntax-highlighting.py: file not shown if no lexer found
peter at colberg.org
Fri Nov 18 04:41:45 CET 2016
I am forwarding a bug reported against cgit 1.0 in Debian.
syntax-highlighting.py aborts due to an unhandled exception if the
inner call to guess_lexer() throws ClassNotFound. Please see the
attached patch by Daniel Reichelt that resolves the issue.
Is the handling of TypeError for the outer call still needed? The
documentation mentions only ClassNotFound as a possible exception.
-------------- next part --------------
An embedded message was scrubbed...
From: Daniel Reichelt <debian at nachtgeist.net>
Subject: [Pkg-cgit-devel] Bug#784621: cgit: file not shown if no lexer found
Date: Thu, 17 Nov 2016 23:48:57 +0100
More information about the CGit