From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter at colberg.org (Peter Colberg) Date: Thu, 17 Nov 2016 22:41:45 -0500 Subject: syntax-highlighting.py: file not shown if no lexer found Message-ID: <20161118034145.smkynrpif3vbnthy@alcyone> Hi, I am forwarding a bug reported against cgit 1.0 in Debian. https://bugs.debian.org/784621 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. http://pygments.org/docs/api/#pygments.lexers.guess_lexer_for_filename Regards, Peter -------------- next part -------------- An embedded message was scrubbed... From: Daniel Reichelt 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: