Skip to content

Commit

Permalink
add warning message when no-use-docker fails
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed May 23, 2023
1 parent 9350918 commit ca0e9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sigexport/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def main(
),
verbose: bool = Option(False, "--verbose", "-v"),
use_docker: bool = Option(
False, help="Use Docker container for SQLCipher extraction"
True, help="Use Docker container for SQLCipher extraction"
),
docker_image: str = Option(None, help="Docker image to use"),
print_data: bool = Option(
Expand Down Expand Up @@ -519,6 +519,7 @@ def main(
try:
from pysqlcipher3 import dbapi2 as _ # type: ignore[import] # noqa
except Exception:
secho("You set 'no-use-docker' but `pysqlcipher3` not installed properly, falling back to Docker")
use_docker = True

if use_docker:
Expand Down

0 comments on commit ca0e9a9

Please sign in to comment.