{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/120","labels_url":"https://api.github.com/repos/zulip/zulip/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/120/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/120/events","html_url":"https://github.com/zulip/zulip/pull/120","id":109553528,"number":120,"title":"check if user is root and tell them to run as zulip user","user":{"login":"r0fls","id":1858004,"avatar_url":"https://avatars.githubusercontent.com/u/1858004?v=3","gravatar_id":"","url":"https://api.github.com/users/r0fls","html_url":"https://github.com/r0fls","followers_url":"https://api.github.com/users/r0fls/followers","following_url":"https://api.github.com/users/r0fls/following{/other_user}","gists_url":"https://api.github.com/users/r0fls/gists{/gist_id}","starred_url":"https://api.github.com/users/r0fls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r0fls/subscriptions","organizations_url":"https://api.github.com/users/r0fls/orgs","repos_url":"https://api.github.com/users/r0fls/repos","events_url":"https://api.github.com/users/r0fls/events{/privacy}","received_events_url":"https://api.github.com/users/r0fls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-02T19:07:02Z","updated_at":"2015-10-04T16:20:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/120","html_url":"https://github.com/zulip/zulip/pull/120","diff_url":"https://github.com/zulip/zulip/pull/120.diff","patch_url":"https://github.com/zulip/zulip/pull/120.patch"},"body":"If the os is posix this will check to see if the user is root and alert them to run as zulip user if they are root. Intended to fix issue #114"},"comment":{"url":"https://api.github.com/repos/zulip/zulip/issues/comments/145363793","html_url":"https://github.com/zulip/zulip/pull/120#issuecomment-145363793","issue_url":"https://api.github.com/repos/zulip/zulip/issues/120","id":145363793,"user":{"login":"lfaraone","id":73410,"avatar_url":"https://avatars.githubusercontent.com/u/73410?v=3","gravatar_id":"","url":"https://api.github.com/users/lfaraone","html_url":"https://github.com/lfaraone","followers_url":"https://api.github.com/users/lfaraone/followers","following_url":"https://api.github.com/users/lfaraone/following{/other_user}","gists_url":"https://api.github.com/users/lfaraone/gists{/gist_id}","starred_url":"https://api.github.com/users/lfaraone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfaraone/subscriptions","organizations_url":"https://api.github.com/users/lfaraone/orgs","repos_url":"https://api.github.com/users/lfaraone/repos","events_url":"https://api.github.com/users/lfaraone/events{/privacy}","received_events_url":"https://api.github.com/users/lfaraone/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T16:20:56Z","updated_at":"2015-10-04T16:20:56Z","body":"Could you refactor this to throw a [`CommandError`](https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/#django.core.management.CommandError) instead of an assert? That'll ensure that the error message is cleanly printed; we should save assertions for validating programmer assumptions (aside from environment failures, which are explicitly called out as outside-scope in [Using Assertions Effectively](https://wiki.python.org/moin/UsingAssertionsEffectively)"}}