Make all scripts in scripts/ pass mypy check.

This commit is contained in:
Eklavya Sharma
2016-07-24 00:03:58 +05:30
parent eba2d470dc
commit 11732f9ab0
5 changed files with 8 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ logging.basicConfig(format="%(asctime)s restart-server: %(message)s",
deploy_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
os.chdir(deploy_path)
if pwd.getpwuid(os.getuid())[0] != "zulip":
if pwd.getpwuid(os.getuid()).pw_name != "zulip":
logging.error("Must be run as user 'zulip'.")
sys.exit(1)