Invert exception types in the exception specification corresponding to |import dbus; ...stuff that might throw a dbus exception| so that failure to import dbus will be caught, rather than triggering a "NameError: name 'dbus' is not defined" error. Followup to bug 981146, r=trivial

--HG--
extra : rebase_source : f3439471f361ea16f74161a3ee68b9227e2c0eb9
This commit is contained in:
Jeff Walden 2014-07-25 14:33:39 -07:00
Родитель f13c4626fd
Коммит 0f6cf3fa54
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -412,7 +412,7 @@ class Build(MachCommandBase):
method = notify.get_dbus_method('Notify',
'org.freedesktop.Notifications')
method('Mozilla Build System', 0, '', 'Build complete', '', [], [], -1)
except (dbus.exceptions.DBusException, ImportError):
except (ImportError, dbus.exceptions.DBusException):
pass
except (which.WhichError, ImportError):