Skip to content

Commit

Permalink
Fixes in client package __main__.py.
Browse files Browse the repository at this point in the history
Re-add DEFAULT_CLIENT_CONFIG_BASENAME definition (that was still being
used) and refactor an error message.
  • Loading branch information
robertbartel committed Oct 4, 2023
1 parent ff46494 commit 0ad7081
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/lib/client/dmod/client/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
from typing import Any, Dict, List, Optional, Tuple, Type


DEFAULT_CLIENT_CONFIG_BASENAME = '.dmod_client_config.json'


class DmodCliArgumentError(ValueError):
"""
Trivial, but distinct, error type for errors involving bad args to the DMOD CLI client.
Expand Down Expand Up @@ -455,7 +458,7 @@ def main():
raise ValueError("Unsupported command {}".format(args.command))

except Exception as error:
print("ERROR: {}".format(error))
print(f"ERROR: {error!s}")
exit(1)


Expand Down

0 comments on commit 0ad7081

Please sign in to comment.