Skip to content

Commit

Permalink
fix: cat_connection return nil on NOT_FOUND
Browse files Browse the repository at this point in the history
  • Loading branch information
drstrangelooker committed Sep 28, 2023
1 parent 9d47cae commit debc862
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/gzr/modules/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def cat_connection(name)
begin
@sdk.connection(name).to_attrs
rescue LookerSDK::NotFound => e
say_error "connection #{name} not found"
say_error e
raise
nil
rescue LookerSDK::Error => e
say_error "Error executing connection(#{name})"
say_error e
Expand Down

0 comments on commit debc862

Please sign in to comment.