file not shown if no lexer found

Peter Colberg peter at
Fri Nov 18 04:41:45 CET 2016


I am forwarding a bug reported against cgit 1.0 in Debian. 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>
Subject: [Pkg-cgit-devel] Bug#784621: cgit: file not shown if no lexer found
Date: Thu, 17 Nov 2016 23:48:57 +0100
Size: 6460
URL: <>

More information about the CGit mailing list