code: def author_mail_from_git(self):
          
          try:
              # launch git command and get answer
              cmd = Popen(["git", "config", "--get", "user.email"], stdout=PIPE)
              stdoutdata = cmd.communicate()
              if (stdoutdata[0]):
                  self.author_mail = stdoutdata[0].rstrip(os.linesep)
          except ImportError:
              pass
          except CalledProcessError:
              pass
          except OSError:
              pass
  
          return self.author_mail
docs: Get the author mail from git information.