Skip to content

Commit

Permalink
[app][fix] missingformat arg
Browse files Browse the repository at this point in the history
  • Loading branch information
M3ssman committed Aug 30, 2024
1 parent 50bc8c0 commit 1bdd67a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "digiflow"
version = "5.2.4"
version = "5.2.5"
description = "Father's Little Digitization Workflow Helper"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
3 changes: 2 additions & 1 deletion src/digiflow/record/record_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class HandlerInformation:

def __init__(self, data_path, logger):
"""Enforce proper types"""
self.data_path = data_path
if isinstance(data_path, str):
self.data_path = Path(data_path)
if not self.data_path.is_absolute():
Expand Down Expand Up @@ -165,7 +166,7 @@ def get_next_record(self, file_name, client_name, requested_state, set_state) ->
next_record = handler.next_record(requested_state)
# if no record available, alert no resource
if next_record is None:
the_msg = DATA_EXHAUSTED_MARK.format(data_file_path)
the_msg = DATA_EXHAUSTED_MARK.format(requested_state, data_file_path)
self.log(the_msg)
return (404, the_msg)

Expand Down

0 comments on commit 1bdd67a

Please sign in to comment.