Add support for path-like objects

This commit is contained in:
Eric Torres 2019-03-25 14:45:21 -07:00
parent 92818c444e
commit bd0030f576

View File

@ -48,7 +48,7 @@ def db_modify(operation, db, *args):
syslog.debug(f"Arguments: {args}") syslog.debug(f"Arguments: {args}")
try: try:
process = _run_script(operation, db, *args) process = _run_script(operation, str(db), *args)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
raise RepoAddError(e) raise RepoAddError(e)
else: else: