Skip to content

Commit

Permalink
Minor change.
Browse files Browse the repository at this point in the history
  • Loading branch information
franckferman committed Oct 23, 2023
1 parent f4f6d75 commit 458bbe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MetaDetective/MetaDetective.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
"doc", "docx", "odt", "pdf", "rtf", "tex", "wpd"
]

EXIFTOOL_NOT_INSTALLED = "Error: exiftool is not installed. Please install it to continue."
EXIFTOOL_EXECUTION_ERROR = "Error: exiftool encountered an error."


def show_banner() -> None:
"""Print the banner."""
Expand All @@ -67,9 +70,6 @@ def show_banner() -> None:

def check_exiftool_installed() -> None:
"""Verify exiftool installation and exit the program if absent or on execution error."""
EXIFTOOL_NOT_INSTALLED = "Error: exiftool is not installed. Please install it to continue."
EXIFTOOL_EXECUTION_ERROR = "Error: exiftool encountered an error."

try:
subprocess.run(["exiftool", "-ver"], capture_output=True, check=True, text=True)
except FileNotFoundError:
Expand Down

0 comments on commit 458bbe9

Please sign in to comment.