mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
zerver/views/webhooks/teamcity.py: Fix line with length greater than 120.
This commit is contained in:
committed by
Tim Abbott
parent
7199ee8f08
commit
5499136bfd
@@ -81,13 +81,15 @@ def api_teamcity_webhook(request, user_profile, client, payload=REQ(argument_typ
|
|||||||
teamcity_user = guess_zulip_user_from_teamcity(teamcity_fullname, user_profile.realm)
|
teamcity_user = guess_zulip_user_from_teamcity(teamcity_fullname, user_profile.realm)
|
||||||
|
|
||||||
if teamcity_user is None:
|
if teamcity_user is None:
|
||||||
teamcity_shortname = get_teamcity_property_value(message['teamcityProperties'], 'teamcity.build.triggeredBy.username')
|
teamcity_shortname = get_teamcity_property_value(message['teamcityProperties'],
|
||||||
|
'teamcity.build.triggeredBy.username')
|
||||||
if teamcity_shortname is not None:
|
if teamcity_shortname is not None:
|
||||||
teamcity_user = guess_zulip_user_from_teamcity(teamcity_shortname, user_profile.realm)
|
teamcity_user = guess_zulip_user_from_teamcity(teamcity_shortname, user_profile.realm)
|
||||||
|
|
||||||
if teamcity_user is None:
|
if teamcity_user is None:
|
||||||
# We can't figure out who started this build - there's nothing we can do here.
|
# We can't figure out who started this build - there's nothing we can do here.
|
||||||
logging.info("Teamcity webhook couldn't find a matching Zulip user for Teamcity user '%s' or '%s'" % (teamcity_fullname, teamcity_shortname))
|
logging.info("Teamcity webhook couldn't find a matching Zulip user for Teamcity user '%s' or '%s'" % (
|
||||||
|
teamcity_fullname, teamcity_shortname))
|
||||||
return json_success()
|
return json_success()
|
||||||
|
|
||||||
body = "Your personal build of " + body
|
body = "Your personal build of " + body
|
||||||
|
|||||||
Reference in New Issue
Block a user