Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1.2 and tip

stable commit: catch TypeError from guess_lexer_for_filename (closes #962)

Changeset e71dda1558dc

Parent 203034aee570

by Steve Borho

Changes to one file · Browse files at e71dda1558dc Showing diff from parent 203034aee570 Diff from another changeset...

 
435
436
437
438
 
439
440
441
 
435
436
437
 
438
439
440
441
@@ -435,7 +435,7 @@
  for tokentype, value in lexer.get_tokens(contents):   if tokentype in Token.Name and len(value) > 4:   tokens.add(value) - except ClassNotFound: + except ClassNotFound, TypeError:   pass   except ImportError:   pass