{"action":"created","issue":{"url":"https://api.github.com/repos/ideascube/ideascube/issues/218","labels_url":"https://api.github.com/repos/ideascube/ideascube/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/ideascube/ideascube/issues/218/comments","events_url":"https://api.github.com/repos/ideascube/ideascube/issues/218/events","html_url":"https://github.com/ideascube/ideascube/issues/218","id":119294579,"number":218,"title":"Dbus not working on Mac. How would you like to deactivate it in that case?","user":{"login":"endeav","id":7684092,"avatar_url":"https://avatars.githubusercontent.com/u/7684092?v=3","gravatar_id":"","url":"https://api.github.com/users/endeav","html_url":"https://github.com/endeav","followers_url":"https://api.github.com/users/endeav/followers","following_url":"https://api.github.com/users/endeav/following{/other_user}","gists_url":"https://api.github.com/users/endeav/gists{/gist_id}","starred_url":"https://api.github.com/users/endeav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endeav/subscriptions","organizations_url":"https://api.github.com/users/endeav/orgs","repos_url":"https://api.github.com/users/endeav/repos","events_url":"https://api.github.com/users/endeav/events{/privacy}","received_events_url":"https://api.github.com/users/endeav/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ideascube/ideascube/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-28T13:46:06Z","updated_at":"2015-11-29T12:54:35Z","closed_at":null,"body":"I had to comment like that.\r\n\r\n```\r\ndiff --git a/ideascube/serveradmin/wifi.py b/ideascube/serveradmin/wifi.py\r\nindex 62d8bb1..56c2b6d 100644\r\n--- a/ideascube/serveradmin/wifi.py\r\n+++ b/ideascube/serveradmin/wifi.py\r\n@@ -3,7 +3,7 @@ from itertools import groupby\r\n from operator import attrgetter\r\n from uuid import uuid4\r\n \r\n-from dbus import DBusException\r\n+# from dbus import DBusException\r\n \r\n from django.utils.translation import ugettext as _\r\n \r\n@@ -99,20 +99,20 @@ class AvailableWifiNetwork(object):\r\n                     'psk': wifi_key,\r\n                     }})\r\n \r\n-        try:\r\n-            return KnownWifiConnection(NMSettings.AddConnection(settings))\r\n-\r\n-        except DBusException as e:\r\n-            excname = e.get_dbus_name()\r\n-            name = 'org.freedesktop.NetworkManager.Settings.InvalidProperty'\r\n-\r\n-            excmsg = e.get_dbus_message()\r\n-            keyprop = '802-11-wireless-security.psk:'\r\n-\r\n-            if excname == name and excmsg.startswith(keyprop):\r\n-                raise WifiError(_('Invalid Wi-Fi key'))\r\n-\r\n-            raise\r\n+        #try:\r\n+        return KnownWifiConnection(NMSettings.AddConnection(settings))\r\n+\r\n+        # except DBusException as e:\r\n+        #     excname = e.get_dbus_name()\r\n+        #     name = 'org.freedesktop.NetworkManager.Settings.InvalidProperty'\r\n+        #\r\n+        #     excmsg = e.get_dbus_message()\r\n+        #     keyprop = '802-11-wireless-security.psk:'\r\n+        #\r\n+        #     if excname == name and excmsg.startswith(keyprop):\r\n+        #         raise WifiError(_('Invalid Wi-Fi key'))\r\n+        #\r\n+        #     raise\r\n \r\n     def connect(self, wifi_key=None):\r\n         if self._connection is not None:\r\n```"},"comment":{"url":"https://api.github.com/repos/ideascube/ideascube/issues/comments/160415314","html_url":"https://github.com/ideascube/ideascube/issues/218#issuecomment-160415314","issue_url":"https://api.github.com/repos/ideascube/ideascube/issues/218","id":160415314,"user":{"login":"endeav","id":7684092,"avatar_url":"https://avatars.githubusercontent.com/u/7684092?v=3","gravatar_id":"","url":"https://api.github.com/users/endeav","html_url":"https://github.com/endeav","followers_url":"https://api.github.com/users/endeav/followers","following_url":"https://api.github.com/users/endeav/following{/other_user}","gists_url":"https://api.github.com/users/endeav/gists{/gist_id}","starred_url":"https://api.github.com/users/endeav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endeav/subscriptions","organizations_url":"https://api.github.com/users/endeav/orgs","repos_url":"https://api.github.com/users/endeav/repos","events_url":"https://api.github.com/users/endeav/events{/privacy}","received_events_url":"https://api.github.com/users/endeav/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T12:54:35Z","updated_at":"2015-11-29T12:54:35Z","body":"@bochecha if I move `from dbus import DBusException` in `try` block it works, indeed. Thank you!"}}