def cleanup(ctx): pv = Povray(ctx.config.povray.parent_dir) with contextlib.suppress(FileNotFoundError): pv.shelve_db_path.unlink() pv.scitools_udb_path.unlink()