diff --git a/bcpandas/__init__.py b/bcpandas/__init__.py index 29e76c9..6ee0504 100644 --- a/bcpandas/__init__.py +++ b/bcpandas/__init__.py @@ -18,6 +18,12 @@ run(["bcp", "-v"], stdout=DEVNULL, stderr=DEVNULL, stdin=DEVNULL) except FileNotFoundError: warnings.warn("BCP utility not installed or not found in PATH, bcpandas will not work!") +except PermissionError: + warnings.warn( + "BCP utility not found due to permission issues, consider supplying path to bcp or bcpandas will not work!" + ) +except Exception as e: + warnings.warn(f"An unhandled error occurred while checking for BCP utility: {e}") del run, DEVNULL, warnings