Commits

Steve Borho  committed 5781008

bugtraq: catch COM errors while enumerating bugtraq providers (closes #1728)

  • Participants
  • Parent commits 08e98aa
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/bugtraq.py

     ret = []
     enumerator = cm.EnumClassesOfCategories((CATID_BugTraqProvider,),())
     while 1:
-        clsid = enumerator.Next()
-        if clsid == ():
+        try:
+            clsid = enumerator.Next()
+            if clsid == ():
+                break
+        except pythoncom.com_error:
             break
-
         ret.extend(clsid)
     return ret