Skip to content

Commit 20b9f7a

Browse files
Piotr Brzyskifacebook-github-bot
authored andcommitted
{Bugfix} mps_cli - import fixes from main branch
Summary: This diff imports fixes done on main branch of Project Aria Tools for MPS CLI application: - fixes error type for multi-slam request, - resets user token in case of resets. Reviewed By: vijay609 Differential Revision: D83159538 fbshipit-source-id: 94a0923f8ea4da2307299b4ba61472a601fed36a
1 parent ff18d7f commit 20b9f7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projectaria_tools/aria_mps_cli/cli_lib/authentication.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ async def set_auth_token(self, token: str, save_token: bool = False) -> None:
141141
if not self._user_alias:
142142
logger.error("Failed to get user alias: Token is invalid.")
143143
self._user_alias = None
144+
self._auth_token = None
144145
raise ValueError("Token is invalid")
145146

146147
# Save the token if required

projectaria_tools/aria_mps_cli/cli_lib/multi_recording_request.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import asyncio
1616
import functools
17-
import glob
1817
import json
1918
import logging
2019
from enum import auto, Enum, unique
@@ -569,7 +568,7 @@ async def on_exception(self, event: EventData) -> None:
569568
state_to_error: Dict[MultiRecordingRequest.States, ErrorCode] = {
570569
MultiRecordingRequest.States.PAST_OUTPUTS_CHECK.name: ErrorCode.PAST_OUTPUT_CHECK_FAILURE,
571570
MultiRecordingRequest.States.HASH_COMPUTATION.name: ErrorCode.HASH_COMPUTATION_FAILURE,
572-
MultiRecordingRequest.States.PAST_REQUESTS_CHECK.name: ErrorCode.PAST_REQUESTS_CHECK_FAILURE,
571+
MultiRecordingRequest.States.PAST_REQUESTS_CHECK.name: ErrorCode.PAST_REQUEST_CHECK_FAILURE,
573572
MultiRecordingRequest.States.VALIDATION.name: ErrorCode.HEALTH_CHECK_FAILURE,
574573
MultiRecordingRequest.States.UPLOAD.name: ErrorCode.UPLOAD_FAILURE,
575574
}

0 commit comments

Comments
 (0)