Skip to content

Commit

Permalink
Avoid bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
knguyen100000010 committed Jun 4, 2024
1 parent ba5f6c7 commit da99b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy-board/deploy_board/webapp/env_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def _get_asg_suspended_processes(request, env):
try:
cluster_name = get_cluster_name(request, env.get('envName'), env.get('stageName'), env=env)
return autoscaling_groups_helper.get_disabled_asg_actions(request, cluster_name)
except:
except Exception:
return None

def _gen_message_for_refreshing_cluster(request, last_cluster_refresh_status, latest_succeeded_base_image_update_event, env):
Expand Down

0 comments on commit da99b42

Please sign in to comment.