Handle PermissionError when importing crypt when FIPS is enabled.

This commit is contained in:
Derek Kulinski 2022-08-30 17:44:39 -07:00 committed by Megan Wilhite
parent 6ce24c90f3
commit 1c1dd0062a

View file

@ -26,7 +26,7 @@ try:
import crypt
HAS_CRYPT = True
except ImportError:
except (ImportError, PermissionError):
HAS_CRYPT = False
try: