diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py index 0c5b9473db..e5fd8e342e 100755 --- a/scripts/lib/zulip_tools.py +++ b/scripts/lib/zulip_tools.py @@ -102,7 +102,8 @@ if __name__ == '__main__': def get_dev_uuid_var_path(create_if_missing=False): # type: (bool) -> str - zulip_path = os.path.realpath(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))) + zulip_path = os.path.realpath(os.path.dirname(os.path.dirname( + os.path.dirname(os.path.realpath(__file__))))) uuid_path = os.path.join(os.path.realpath(os.path.dirname(zulip_path)), ".zulip-dev-uuid") if os.path.exists(uuid_path): with open(uuid_path) as f: diff --git a/scripts/nagios/check-rabbitmq-queue b/scripts/nagios/check-rabbitmq-queue index 8b1daac9db..12bfdfb39c 100755 --- a/scripts/nagios/check-rabbitmq-queue +++ b/scripts/nagios/check-rabbitmq-queue @@ -63,6 +63,7 @@ if not set(warn_queues) - set(("missedmessage_emails", "digest_emails")) and \ exit(0) if status > 0: - print("%s|%s|%s|max count %s, queues affected: %s" % (now, status, states[status], max_count, warn_about)) + print("%s|%s|%s|max count %s, queues affected: %s" % ( + now, status, states[status], max_count, warn_about)) else: print("%s|%s|%s|queues normal, max count %s" % (now, status, states[status], max_count))