Skip to content

Commit d96c470

Browse files
small improvements
1 parent 9498cb6 commit d96c470

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/browsergym/workarena/install.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -791,19 +791,19 @@ def disable_password_policies():
791791
instance=SNowInstance(), property_name="glide.apply.password_policy.on_login", value="false"
792792
)
793793
# The following is not supported on developer portal instances
794-
if not _is_dev_portal_instance():
795-
try:
796-
set_sys_property(
794+
try:
795+
set_sys_property(
797796
instance=SNowInstance(),
798797
property_name="glide.authenticate.api.user.reset_password.mandatory",
799798
value="false",
800799
)
801-
except Exception as e:
802-
logging.warning(
803-
"Skipping: failed to set sys property "
804-
"'glide.authenticate.api.user.reset_password.mandatory'. Continuing.",
805-
exc_info=True,
806-
)
800+
except Exception:
801+
logging.warning(
802+
"Skipping: failed to set sys property "
803+
"'glide.authenticate.api.user.reset_password.mandatory'. Continuing.",
804+
exc_info=True,
805+
)
806+
807807
logging.info("Password policies disabled.")
808808

809809

0 commit comments

Comments
 (0)