diff --git a/lib/galaxy/jobs/runners/aws.py b/lib/galaxy/jobs/runners/aws.py index 9831cc42950e..5f301b078975 100644 --- a/lib/galaxy/jobs/runners/aws.py +++ b/lib/galaxy/jobs/runners/aws.py @@ -37,9 +37,8 @@ try: import boto3 - except ImportError as e: - boto3 = None + boto3 = None # type: ignore[assignment] BOTO3_IMPORT_MSG.format(msg=unicodify(e))