Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Laurent authored and eradman committed Nov 6, 2023
1 parent b74422d commit 64a9703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion redash/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def default_parameters_query_text(self):

@property
def parameters_dict(self):
return { p["name"]: p.get("value") for p in self.parameters }
return {p["name"]: p.get("value") for p in self.parameters}

@property
def parameterized(self):
Expand Down
7 changes: 2 additions & 5 deletions redash/tasks/queries/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,12 @@ def _apply_default_parameters(query):
try:
return query.default_parameters_query_text
except InvalidParameterError as e:
error = u"Skipping refresh of {} because of invalid parameters: {}".format(
query.id, str(e)
)
error = "Skipping refresh of {} because of invalid parameters: {}".format(query.id, str(e))
track_failure(query, error)
raise
except QueryDetachedFromDataSourceError as e:
error = (
"Skipping refresh of {} because a related dropdown "
"query ({}) is unattached to any datasource."
"Skipping refresh of {} because a related dropdown " "query ({}) is unattached to any datasource."
).format(query.id, e.query_id)
track_failure(query, error)
raise
Expand Down

0 comments on commit 64a9703

Please sign in to comment.