Skip to content

Commit

Permalink
style: apply flake8 convention
Browse files Browse the repository at this point in the history
  • Loading branch information
alimghmi committed Oct 22, 2023
1 parent 6cb45fe commit 86fd945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def parse_html(self, content: str) -> pd.DataFrame:

def validate_data(self, df: pd.DataFrame) -> None:
if df["Clearing Date"].str.contains("No data found").any() or not len(df):
logger.error(f"Data validation failed")
logger.error("Data validation failed")
raise ValueError("No price data provided by the provider as of now.")

logger.debug("Data validation succeeded.")

0 comments on commit 86fd945

Please sign in to comment.