def get_settings(self):
        """Retrieve existing configurations, or create the config file if it does not exist."""
        try:
            with open(self.file_path, "r") as f:
                blob = json.load(f)
        except FileNotFoundError:
            self.logger.debug("No configuration file. Creating new one at {}."
                              .format(self.file_path))
            with open(self.file_path, "w") as f:
                json.dump({}, f)
                blob = {}
        except __HOLE__:
            overwrite = input("Configuration file is formatted incorrectly. Erase and create a new"
                              " one? [y/n] ")
            if overwrite.lower() == "y":
                self.logger.info("Overwrote incorrectly-formatted configuration file.")
                with open(self.file_path, "w") as f:
                    json.dump({}, f)
                    blob = {}
            else:
                return None
        return blob
dataset/ETHPy150Open molly/GorillaBot/gorillabot/configure.py/Configurator.get_settings