locust-cloud 1.2.11__py3-none-any.whl → 1.2.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
locust_cloud/__init__.py CHANGED
@@ -17,7 +17,7 @@ GRAPH_VIEWER = os.environ.get("GRAPH_VIEWER")
17
17
 
18
18
  @events.init_command_line_parser.add_listener
19
19
  def add_arguments(parser: LocustArgumentParser):
20
- if not PG_HOST:
20
+ if not (PG_HOST or GRAPH_VIEWER):
21
21
  parser.add_argument_group(
22
22
  "locust-cloud",
23
23
  "locust-cloud disabled, because PG_HOST was not set - this is normal for local runs",