def write_with_get(file_path, mode, page): try: writer.write(file_path, mode, page) except: clear_database(database) raise print_database(database) print "\n"
def _write(self, file_path, mode, page=None): self._writer.write(file_path, mode, page) if self._debug: print "Write(%s):" % mode print_database(self._database) print ""