Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@


from datetime import datetime, timezone, timedelta, date
from requests.exceptions import HTTPError
import grass.script as gs
from grass.pygrass.modules import Module
from grass.exceptions import CalledModuleError
Expand Down Expand Up @@ -403,8 +404,9 @@ def main():
# Checking credentials early
dag = EODataAccessGateway()
try:
dag._plugins_manager.get_auth_plugin("cop_dataspace").authenticate()
except MisconfiguredError as e:
cop_plugin = next(dag._plugins_manager.get_search_plugins(provider="cop_dataspace"))
dag._plugins_manager.get_auth_plugin(cop_plugin).authenticate()
except (MisconfiguredError, HTTPError) as e:
gs.fatal(e)
except AuthenticationError:
gs.fatal(
Expand Down
Loading