Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Unified Diff: appengine/findit/crash/classifier.py

Issue 2243693002: [Findit] Filter empty class. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/crash/classifier.py
diff --git a/appengine/findit/crash/classifier.py b/appengine/findit/crash/classifier.py
index d13fb0d7d94a62a2839ed30a6657e0393e0c774f..5c0894a5f50ecc948f6e8a060008837c0fd42e9a 100644
--- a/appengine/findit/crash/classifier.py
+++ b/appengine/findit/crash/classifier.py
@@ -91,7 +91,8 @@ class Classifier(object):
class_infos = _GetClassOccurrenceInfos()
class_infos = sorted(class_infos, key=rank_function)
- classes = [info.name for info in class_infos]
+ # Filter all empty class.
+ classes = [info.name for info in class_infos if info.name]
return classes[:max_classes]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698