Skip to content

Commit

Permalink
- r logging
Browse files Browse the repository at this point in the history
Co-Authored-By: Jay Bazuzi <jay@bazuzi.com>
  • Loading branch information
isidore and JayBazuzi committed Sep 23, 2024
1 parent 31d72f2 commit 5aa7b24
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions approval_utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ def is_windows_os() -> bool:


def create_empty_file(file_path: str) -> None:
import empty_files.empty_files

empty_files.empty_files.create_empty_file(file_path)


try:
import empty_files.empty_files
empty_files.empty_files.create_empty_file(file_path)
except ImportError as e:
print("Error importing empty_files", e)
raise
def ensure_file_exists(approved_path: str) -> None:
print("approved_path check", approved_path)
if not os.path.isfile(approved_path):
create_empty_file(approved_path)

Expand Down

0 comments on commit 5aa7b24

Please sign in to comment.