mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Handle bad api_key for jira integration properly.
(imported from commit e6063431e81434faa5f32ac8f91a08f86bd46997)
This commit is contained in:
parent
0d84d0858a
commit
30f825ebfe
@ -1525,8 +1525,7 @@ def api_jira_webhook(request):
|
||||
try:
|
||||
user_profile = UserProfile.objects.get(api_key=api_key)
|
||||
except UserProfile.DoesNotExist:
|
||||
import logging
|
||||
logging.warning("Failed to find user with API key: %s" % api_key)
|
||||
return json_error("Failed to find user with API key: %s" % (api_key,))
|
||||
|
||||
def get_in(payload, keys, default=''):
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user