Skip to content

Commit

Permalink
Merge pull request #4578 from zenoss/bugfix/ZEN-35081.7x
Browse files Browse the repository at this point in the history
Don't print missing config file error.
  • Loading branch information
jpeacock-zenoss authored Oct 15, 2024
2 parents 8b34d27 + 7ae12f5 commit 3a2c613
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Products/ZenUtils/CmdBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,11 @@ def _get_defaults_from_config(args):
try:
appcfg = ConfigLoader(opts.configfile)()
overrides.update(appcfg)
except Exception as ex:
print("warning: {}".format(ex), file=sys.stderr)
except Exception as ex: # noqa: F841 S110
# Restore this code when the wrapper scripts no longer
# add the -C option all the time.
# print("warning: {}".format(ex), file=sys.stderr)
pass
return {key.replace("-", "_"): value for key, value in overrides.items()}


Expand Down

0 comments on commit 3a2c613

Please sign in to comment.