def tabulate_snapshots(self, file): if not file: self.logger.info("Please enter a valid filename.") return None s = Snapshot(file) table = s.tabulate() if table: self.logger.info("Snapshot Information for file: {}".format(file)) self.logger.info(s.tabulate()) else: self.logger.info("No snapshot Information found for file: {}".format(file))