INNER CODE UNIT · Python
wrapper
wiltodelta/remove-ai-watermarks · src/remove_ai_watermarks/cli.py:407
def wrapper(*args: Any, **kwargs: Any) -> None:
try:
func(*args, **kwargs)
except ImportError as exc:
from remove_ai_watermarks.optional_deps import pixels_available
if pixels_available():
raise
console.print(
"Error: the visible-mark dependencies are not installed.\n"
f" Install them with: pip install {VISIBLE_EXTRA}"
)
raise SystemExit(1) from exc
return wrapper
def _write_output_or_exit(