Skip to content

Commit

Permalink
refactor: remove unnecessary f-string (#1318)
Browse files Browse the repository at this point in the history
It is wasteful to use `f-string` mechanism if there are no expressions
to be extrapolated. It is recommended to use regular strings instead.

---------

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Dec 8, 2023
1 parent cf81470 commit 4c9a6d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/quacc/schemas/vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def vasp_summarize_run(
bader_results = _bader_runner(dir_path, structure=struct)
except Exception:
bader_results = None
logging.warning(f"Bader analysis could not be performed.", exc_info=True)
logging.warning("Bader analysis could not be performed.", exc_info=True)

if bader_results:
vasp_task_doc["bader"] = bader_results[0]
Expand All @@ -110,9 +110,7 @@ def vasp_summarize_run(
chargemol_results = _chargemol_runner(dir_path, structure=struct)
except Exception as err:
chargemol_results = None
logging.warning(
f"Chargemol analysis could not be performed.", exc_info=True
)
logging.warning("Chargemol analysis could not be performed.", exc_info=True)

if chargemol_results:
vasp_task_doc["chargemol"] = chargemol_results[0]
Expand Down

0 comments on commit 4c9a6d6

Please sign in to comment.