src/eric7/Plugins/VcsPlugins/vcsGit/GitBlameDialog.py

branch
eric7
changeset 9230
70f269d529e4
parent 9221
bf71ee032bb4
child 9413
80c06d472826
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitBlameDialog.py	Thu Jul 14 10:18:45 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitBlameDialog.py	Thu Jul 14 10:21:36 2022 +0200
@@ -212,8 +212,9 @@
                 self.process.readLine(), Preferences.getSystem("IOEncoding"), "replace"
             ).strip()
             match = self.__blameRe.match(line)
-            commitId, author, date, time, lineno, text = match.groups()
-            self.__generateItem(commitId, author, date, time, lineno, text)
+            if match is not None:
+                commitId, author, date, time, lineno, text = match.groups()
+                self.__generateItem(commitId, author, date, time, lineno, text)
 
     def __readStderr(self):
         """

eric ide

mercurial