uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Unguarded next inside generator PTC-W0063
Bug risk
Critical
1 occurrence in this check
Call to next() should be wrapped in try-except
 681                        custom_metric_usage = metric_usage[customer.customer_name]
 682                        for unique_tup, d in custom_metric_usage.items():
 683                            i = iter(unique_tup)
 684                            _ = next(i)  # i.next() in older versions 685                            groupby_vals = list(i)
 686                            usage = list(d.values())[0]
 687                            unique_tup_dict = {