Skip to content

Commit

Permalink
Fix according to review comments.
Browse files Browse the repository at this point in the history
JIRA: PDC-1564
  • Loading branch information
simozhan committed Jul 5, 2016
1 parent 0a62d32 commit f381a7b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pdc_client/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ def load_plugins(self):
raise TypeError('Server must be specified')
config = pdc_client.read_config_file(server)
plugins = DEFAULT_PLUGINS
if config:
try:
plugins = config[CONFIG_PLUGINS_KEY_NAME]
except KeyError:
pass
if config and config.get(CONFIG_PLUGINS_KEY_NAME):
plugins = config.get(CONFIG_PLUGINS_KEY_NAME)
if not isinstance(plugins, list):
raise TypeError('Plugins must be a list')

Expand Down

1 comment on commit f381a7b

@ycheng-aa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.