flimflam.py: Avoid crashing when an element disappears during find.

In FindElementByPropertySubstring, there is a race condition: if we
get the list of objects, but one of them disappears before we examine
it, we will get an UnknownMethod error from DBus.

This change ignores those errors, under the assumption that they must
be caused by this race condition.

Among other things, this makes network_3GSafetyDance less flaky.

BUG=chromium-os:15864
TEST=SafetyDance no longer fails with UnknownMethod

Change-Id: I60394780e01d8830fb52f5dd9d448e797c993dfa
Reviewed-on: http://gerrit.chromium.org/gerrit/5599
Tested-by: ttuttle <ttuttle@chromium.org>
Reviewed-by: ttuttle <ttuttle@chromium.org>
1 file changed