Skip to content

Commit d84942f

Browse files
Merge branch 'master' into kowalski/ci-test-on-more-python-versions
2 parents 9395e9a + 8fcb99b commit d84942f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datadog/dogshell/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def load(self, config_file, api_key, app_key, api_host):
9494
"What is your app key? (Get it here: "
9595
"https://app.datadoghq.com/account/settings#api) "
9696
)
97-
if app_key.isalnum():
97+
if app_key.replace("_", "").isalnum():
9898
break
99-
print("Datadog app keys can only contain alphanumeric characters.")
99+
print("Datadog app keys can only contain alphanumeric characters and underscores.")
100100

101101
# Write the config file
102102
config.add_section("Connection")

0 commit comments

Comments
 (0)