/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to commit.py

  • Committer: Mateusz Korniak
  • Date: 2007-07-19 14:32:53 UTC
  • mfrom: (242 trunk)
  • mto: This revision was merged to the branch mainline in revision 248.
  • Revision ID: matkor@laptop-hp-20070719143253-70275u9t7hg5m7nq
merged official

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
                        proxy_obj, 'org.freedesktop.NetworkManager')
156
156
                try:
157
157
                    # 3 is the enum value for STATE_CONNECTED
158
 
                    self._check_local.set_active(dbus_iface.state() != 3) # FIXME: We need better way of finding if net is available, as above fails for me running KDE (MateuszKorniak).  
159
 
                                                                          # <dbus_bindings.DBusException instance at 0xb66e38cc> : The name org.freedesktop.NetworkManager was not provided by any .service files
160
 
                except Exception,e:
161
 
                    self._check_local.set_active(False) # Assuming commits non local seems sane to me  (MateuszKorniak).
162
 
                    print "ERROR: dbus_iface.state() failed with: %r : %s" % (e,e)
 
158
                    self._check_local.set_active(dbus_iface.state() != 3)
 
159
                except dbus.DBusException, e:
 
160
                    # Silently drop errors. While DBus may be 
 
161
                    # available, NetworkManager doesn't necessarily have to be
 
162
                    mutter("unable to get networkmanager state: %r" % e)
163
163
                
164
164
        # Create the file list
165
165
        self._create_file_view()