anaynayak / buildnotify

A system tray based build status notification app for cctray.xml feeds.
https://anaynayak.github.io/buildnotify/
Other
29 stars 7 forks source link

Fails with KeyError: u'Success.Has pending changes' on Teamcity #9

Closed anaynayak closed 7 years ago

anaynayak commented 13 years ago

Originally reported by: Anonymous


Terminal log:

/usr/lib/python2.7/site-packages/gtk-2.0/gtk/init.py:122: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK set_interactive(1) checking http:///guestAuth/app/cctray-standalone/cctray/projects.xml processed http:///guestAuth/app/cctray-standalone/cctray/projects.xml Traceback (most recent call last): File "/tmp/buildnotify/buildnotifylib/buildnotify.py", line 47, in update_projects self.app_ui.update_projects(integration_status) File "/tmp/buildnotify/buildnotifylib/app_ui.py", line 16, in update_projects self.tray.setIcon(self.build_icons.for_aggregate_status(integration_status.get_build_status(), count)) File "/tmp/buildnotify/buildnotifylib/projects.py", line 43, in get_build_status map = self.to_map() File "/tmp/buildnotify/buildnotifylib/projects.py", line 62, in to_map status[project.get_build_status()].append(project)

KeyError: u'Success.Has pending changes'

Seems to be a case of Teamcity using non "standard" activity status http://svn.jetbrains.org/teamcity/plugins/rest-api/trunk/contrib/cctray-extension/server/src/jetbrains/buildServer/server/restcontrib/cctray/model/Project.java


anaynayak commented 13 years ago

Original comment by Anay Nayak (Bitbucket: Anay, GitHub: Anay):


Added initial fix which does not crash the app but instead marks the project status as unknown.

Still need to identify an exact fix which shows the buildStatus but indicates issues with the current activity.