Dbus not working on Mac. How would you like to deactivate it in that case?
Created by: endeav
I had to comment like that.
diff --git a/ideascube/serveradmin/wifi.py b/ideascube/serveradmin/wifi.py
index 62d8bb1..56c2b6d 100644
--- a/ideascube/serveradmin/wifi.py
+++ b/ideascube/serveradmin/wifi.py
@@ -3,7 +3,7 @@ from itertools import groupby
from operator import attrgetter
from uuid import uuid4
-from dbus import DBusException
+# from dbus import DBusException
from django.utils.translation import ugettext as _
@@ -99,20 +99,20 @@ class AvailableWifiNetwork(object):
'psk': wifi_key,
}})
- try:
- return KnownWifiConnection(NMSettings.AddConnection(settings))
-
- except DBusException as e:
- excname = e.get_dbus_name()
- name = 'org.freedesktop.NetworkManager.Settings.InvalidProperty'
-
- excmsg = e.get_dbus_message()
- keyprop = '802-11-wireless-security.psk:'
-
- if excname == name and excmsg.startswith(keyprop):
- raise WifiError(_('Invalid Wi-Fi key'))
-
- raise
+ #try:
+ return KnownWifiConnection(NMSettings.AddConnection(settings))
+
+ # except DBusException as e:
+ # excname = e.get_dbus_name()
+ # name = 'org.freedesktop.NetworkManager.Settings.InvalidProperty'
+ #
+ # excmsg = e.get_dbus_message()
+ # keyprop = '802-11-wireless-security.psk:'
+ #
+ # if excname == name and excmsg.startswith(keyprop):
+ # raise WifiError(_('Invalid Wi-Fi key'))
+ #
+ # raise
def connect(self, wifi_key=None):
if self._connection is not None: