Commits

Steve Borho committed e71dda1

commit: catch TypeError from guess_lexer_for_filename (closes #962)

  • Participants
  • Parent commits 203034a
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/commit.py

                 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