Skip to content

Commit

Permalink
Satisfy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed Jun 1, 2021
1 parent ca8d864 commit 4b92b53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wetterdienst/ui/cli.py
Expand Up @@ -434,7 +434,9 @@ def coverage(provider, kind, filter_, debug, **kwargs):
def fields(provider, kind, dataset, resolution, period, language, **kwargs):
api = get_api(provider, kind)

if not (api.provider == Provider.DWD and api.kind == Kind.OBSERVATION) and kwargs.get("fields"):
if not (
api.provider == Provider.DWD and api.kind == Kind.OBSERVATION
) and kwargs.get("fields"):
raise click.BadParameter("'fields' command only available for provider 'DWD'")

metadata = api.describe_fields(
Expand Down

0 comments on commit 4b92b53

Please sign in to comment.