Skip to content

Commit 81b4089

Browse files
authored
fix(RecordingsAPI): catch AttributeError if audio_info is None (#729)
1 parent 701bb5e commit 81b4089

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openadapt/app/dashboard/api/recordings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def get_recording_detail(websocket: WebSocket, recording_id: int) -> None:
9393
}
9494
for word in words_with_timestamps
9595
]
96-
except IndexError:
96+
except (IndexError, AttributeError):
9797
words_with_timestamps = []
9898
word_index = 0
9999

openadapt/app/dashboard/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export NVM_DIR="$HOME/.nvm"
55
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
66

77
nvm install 21
8-
nvm use
8+
nvm use 21
99
npm install

0 commit comments

Comments
 (0)