Skip to content

Commit dc3ba8c

Browse files
authored
{Pylint} Fix raising-bad-type (#30346)
1 parent 228f8ca commit dc3ba8c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pylintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ disable=
4646
consider-using-dict-items,
4747
consider-using-enumerate,
4848
redundant-u-string-prefix,
49-
raising-bad-type,
5049
unused-private-member,
5150
# These rules were added in Pylint >= 2.12, disable them to avoid making retroactive change
5251
missing-timeout,

src/azure-cli/azure/cli/command_modules/acs/azuremonitormetrics/amw/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
def get_default_region(cmd):
1313
cloud_name = cmd.cli_ctx.cloud.name
1414
if cloud_name.lower() == 'azurechinacloud':
15-
raise "chinanorth3"
15+
return "chinanorth3"
1616
if cloud_name.lower() == 'azureusgovernment':
1717
return "usgovvirginia"
1818
if cloud_name.lower() == 'ussec':

0 commit comments

Comments
 (0)