upgraded package manager

This commit is contained in:
Saifeddine ALOUI 2024-11-20 23:24:25 +01:00
parent 55862e3882
commit 9eae059a43

View File

@ -975,10 +975,10 @@ class PackageManager:
raise ImportError(f"Version {installed_version} is less than the required {min_version}.")
return True
except ImportError as ex:
print(f"Package '{package_name}' is not installed or version requirement not met. Error: {ex}")
ASCIIColors.error(f"\nPackage '{package_name}' is not installed or version requirement not met. Error: {ex}")
return False
except Exception as ex:
print(f"Error checking package: {ex}")
ASCIIColors.error(f"\nError checking package: {ex}")
return False
@staticmethod