Skip to content

Commit 6feb6e7

Browse files
[fix] Handle StopIteration error in iter_sequence_info_by_type method (#3265)
* [fix] Handle StopIteration error in iter_sequence_info_by_type method * [doc] Update CHANGELOG.md
1 parent 979efe0 commit 6feb6e7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Fix aggregated metrics' computations (mihran113)
77
- Fix bug in RunStatusReporter raising non-deterministic RuntimeError exception (VassilisVassiliadis)
88
- Fix tag addition issue from parallel runs (mihran113)
9+
- Handle `StopIteration` exception in iter_sequence_info_by_type method (alberttorosyan)
910

1011
## 3.26.1 Dec 3, 2024
1112
- Re-upload after PyPI size limitation fix

aim/sdk/run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def iter_sequence_info_by_type(self, dtypes: Union[str, Tuple[str, ...]]) -> Ite
500500
try:
501501
self.meta_run_tree.first_key('typed_traces')
502502
has_trace_type_info = True
503-
except KeyError:
503+
except (KeyError, StopIteration):
504504
has_trace_type_info = False
505505

506506
if has_trace_type_info:

troubleshooting/TROUBLESHOOTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Query time samples are collected by running sample basic queries.
1010

1111
The output of the script is a JSON file containing the statistics.
1212

13-
## How to Use the Command
13+
### How to Use the Command
1414

1515
**Step 1:** Download the `base_project_statistics.py` is in your working directory.
1616
**Step 2:** Execute the script on the repo of interest
@@ -22,7 +22,7 @@ python -m base_project_statistics --repo <path_to_repo>
2222
```
2323
The command generates a JSON file in the current working directory, containing statistics about the repository.
2424

25-
## Example JSON Output
25+
### Example JSON Output
2626

2727
A typical output file contains the following information:
2828

0 commit comments

Comments
 (0)