Skip to content

Commit

Permalink
Support module imports. Closes #1056.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Oct 24, 2023
1 parent eac3f89 commit 7435d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/falconpy/_auth_object/_falcon_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from json import loads
try:
from simplejson import JSONDecodeError
except ImportError:
except (ImportError, ModuleNotFoundError): # Support import as a module
from json.decoder import JSONDecodeError
from logging import Logger, getLogger
from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion src/falconpy/_util/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from json import loads
try:
from simplejson import JSONDecodeError
except ImportError:
except (ImportError, ModuleNotFoundError): # Support import as a module
from json.decoder import JSONDecodeError
from typing import Dict, Any, Union, Optional, List
from copy import deepcopy
Expand Down

0 comments on commit 7435d9d

Please sign in to comment.