svn: fix ssh subcommand type with missing space
This commit is contained in:
parent
849641a10a
commit
2f1aff604a
3 changed files with 19 additions and 8 deletions
|
|
@ -117,13 +117,17 @@ def get_txn_id_from_store(repo_path, svn_txn_id, rm_on_read=False):
|
|||
data = {}
|
||||
redis_conn.get(store_key)
|
||||
raw_data = "not-set"
|
||||
|
||||
try:
|
||||
raw_data = redis_conn.get(store_key)
|
||||
if not raw_data:
|
||||
raise ValueError(f"Failed to get txn_id metadata, from store: {store_key}")
|
||||
data = json.loads(raw_data)
|
||||
if raw_data:
|
||||
data = json.loads(raw_data)
|
||||
except Exception:
|
||||
log.exception("Failed to get txn_id metadata: %s", raw_data)
|
||||
log.exception("Failed to get txn_id metadata: redis_conn=%s raw_data=%s", redis_conn, raw_data)
|
||||
|
||||
if not data:
|
||||
log.exception("Failed to get txn_id metadata: redis_conn=%s raw_data=%s", redis_conn, raw_data)
|
||||
raise ValueError(f"Failed to get txn_id metadata, from store: {store_key}")
|
||||
|
||||
if rm_on_read:
|
||||
log.debug("Cleaning up txn_id at %s", store_key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue