fix release year code
authorTom Samstag <github@modtwo.com>
Sat, 11 Feb 2017 19:30:27 +0000 (11:30 -0800)
committerSteve McIntyre <steve@einval.com>
Wed, 21 Feb 2018 21:45:04 +0000 (21:45 +0000)
commit939fe31e4f81aeccc8f0f1d38370b6f2ccb62987
tree919a275f1b00ca1df277a2a00f348c391ac460ee
parentae94b275c9695b633c2dd672cc59f1069f8dc11e
fix release year code

The fix for #30 implemented in 1f1d33c64206841195a196595ed48f78952c07e6
relies on the release-event-list node from MB containing a count
attribute. However in my testing, that isn't the case, and so the
release year is never populated. This change checks that the
release_event_list isn't undef before trying to get the events (the
cause of the exception in #30) but then doesn't rely on the count() of
the release_event_list.
abcde-musicbrainz-tool
changelog