Skip to content

Commit

Permalink
fix(RecordingsAPI): catch AttributeError if audio_info is None (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr authored Jun 11, 2024
1 parent 701bb5e commit 81b4089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openadapt/app/dashboard/api/recordings.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def get_recording_detail(websocket: WebSocket, recording_id: int) -> None:
}
for word in words_with_timestamps
]
except IndexError:
except (IndexError, AttributeError):
words_with_timestamps = []
word_index = 0

Expand Down
2 changes: 1 addition & 1 deletion openadapt/app/dashboard/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

nvm install 21
nvm use
nvm use 21
npm install

0 comments on commit 81b4089

Please sign in to comment.