bindings.py: Use get_dbus_name to check for error

Check the dbus name instead of message for error checking.
The dbus message is the description of the error, like
"Unknown interface 'foo'". The dbus name is the actual
error string, like "org.freedesktop.DBus.Error.UnknownInterface",

Resolves openbmc/openbmc#2463

Change-Id: I8721e7b262dbc8f4ebae9a8e30074bdf6a53b025
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/obmc/mapper/bindings.py b/obmc/mapper/bindings.py
index e61a39c..d436bb3 100644
--- a/obmc/mapper/bindings.py
+++ b/obmc/mapper/bindings.py
@@ -82,7 +82,7 @@
             return f(*a)
         except dbus.exceptions.DBusException, e:
             if obmc.dbuslib.enums.DBUS_UNKNOWN_INTERFACE in \
-                    e.get_dbus_message():
+                    e.get_dbus_name():
                 # interface doesn't have any properties
                 return None
             if obmc.dbuslib.enums.DBUS_UNKNOWN_METHOD == e.get_dbus_name():