code: def on_error(self, e, pair):
          
          RED = ansi_code("Fore.LIGHTRED_EX")
          R = ansi_code("Style.RESET_ALL")
          # any_entry = pair.any_entry
          write((RED + "ERROR: {}\n    {}" + R).format(e, pair))
          # Return True to ignore this error (instead of raising and terminating the app)
          if "[Errno 92] Illegal byte sequence" in "{}".format(e) and compat.PY2:
              write(RED + "This _may_ be solved by using Python 3." + R)
              # return True
          return False
docs: Called for pairs that don't match `match` and `exclude` filters.