Skip to content

Commit

Permalink
{Pylint} Fix raising-bad-type (#30346)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored Nov 20, 2024
1 parent 228f8ca commit dc3ba8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ disable=
consider-using-dict-items,
consider-using-enumerate,
redundant-u-string-prefix,
raising-bad-type,
unused-private-member,
# These rules were added in Pylint >= 2.12, disable them to avoid making retroactive change
missing-timeout,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def get_default_region(cmd):
cloud_name = cmd.cli_ctx.cloud.name
if cloud_name.lower() == 'azurechinacloud':
raise "chinanorth3"
return "chinanorth3"
if cloud_name.lower() == 'azureusgovernment':
return "usgovvirginia"
if cloud_name.lower() == 'ussec':
Expand Down

0 comments on commit dc3ba8c

Please sign in to comment.