Skip to content

Repair bgd --help when some optional modules are not installed

Misha Gusarov requested to merge misha/handle-unavailable-commands into master

CLI bugfix, no tests/metrics are involved.

Description

Before this change bgd --help returned pretty unhelpful message Error: No such command: [browser_backend] if some of optional modules were not installed, and corresponding command modules were not import'able.

Fix it by detecting this situation and providing help message with explanation why a command is not available.

Validation

  • Uninstall aiohttp Python module
  • Run bgd --help
  • See that the command list is returned, and unavailable commands are marked as such.

Merge request reports