File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
src/sentry/integrations/slack/tasks Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 32
32
),
33
33
)
34
34
def find_channel_id_for_rule (
35
- project : Project | None ,
36
35
actions : Sequence [dict [str , Any ]],
37
36
uuid : str ,
38
37
rule_id : int | None = None ,
@@ -42,13 +41,11 @@ def find_channel_id_for_rule(
42
41
) -> None :
43
42
redis_rule_status = RedisRuleStatus (uuid )
44
43
45
- if not project and project_id :
46
- try :
47
- project = Project .objects .get_from_cache (id = project_id )
48
- except Project .DoesNotExist :
49
- redis_rule_status .set_value ("failed" )
50
- return
51
- assert project , "find_channel_id_for_rule requires a project or project_id"
44
+ try :
45
+ project = Project .objects .get_from_cache (id = project_id )
46
+ except Project .DoesNotExist :
47
+ redis_rule_status .set_value ("failed" )
48
+ return
52
49
53
50
organization = project .organization
54
51
integration_id : int | None = None
You can’t perform that action at this time.
0 commit comments