print(msg)
-def clean_deleted_relations(config: Configuration, age: Optional[str] = None) -> None:
+def clean_deleted_relations(config: Configuration, age: str) -> None:
""" Clean deleted relations older than a given age
"""
- if not age:
- LOG.fatal('No age given to delete relations')
- raise UsageError('Age parameter not found')
with connect(config.get_libpq_dsn()) as conn:
with conn.cursor() as cur:
try:
except DataError as exc:
raise UsageError('Invalid PostgreSQL time interval format') from exc
conn.commit()
-
\ No newline at end of file