Skip to content

Commit

Permalink
Reverse order of ert.shared vs ert_shared imports (#88)
Browse files Browse the repository at this point in the history
Importing the deprecated ert_shared first in the try
clause might trigger deprecation warnings.
  • Loading branch information
berland authored Sep 20, 2022
1 parent cd86303 commit c836205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fmu/sumo/uploader/scripts/sumo_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from pathlib import Path

try:
from ert_shared.plugins.plugin_manager import hook_implementation # type: ignore
except ModuleNotFoundError:
from ert.shared.plugins.plugin_manager import hook_implementation # type: ignore
except ModuleNotFoundError:
from ert_shared.plugins.plugin_manager import hook_implementation # type: ignore

try:
from ert import ErtScript # type: ignore
Expand Down

0 comments on commit c836205

Please sign in to comment.