              except ValueError:
                  # This is probably an error reading the file whilst it's
                  # being saved  so ignore it for now and only pick up if
                  # there have been multiple consecutive fails
                  if self.errcount < 10:
                      self.errcount += 1
                  else:
                      logger.error("Error reading the preview file for '%s'", img)
                      print("Error reading the preview file for {}".format(name))
 
</s>
                logger.warning("Unable to display preview: (image: '%s', attempt: %s)",
                               img, self.errcount)
              except ValueError:
                  # This is probably an error reading the file whilst it's
                  # being saved  so ignore it for now and only pick up if
                  # there have been multiple consecutive fails
                logger.warning("Unable to display preview: (image: '%s', attempt: %s)",
                               img, self.errcount)
                  if self.errcount < 10:
                      self.errcount += 1
                  else:
                      logger.error("Error reading the preview file for '%s'", img)
                      print("Error reading the preview file for {}".format(name))
keep keep keep add keep keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging
lib/gui/utils.py