Skip to content

Commit

Permalink
Update python version in containers.
Browse files Browse the repository at this point in the history
  • Loading branch information
elcct committed Feb 5, 2025
1 parent ce7c202 commit 31185e5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,6 @@ workflows:
jobs:
- build:
publish_coverage: true
python_image: python:3.10.5
python_image: python:3.10.16
postgres_image: postgres:16
os_image: opensearchproject/opensearch:2.11.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10.5
FROM python:3.10.16

# Install dockerize https://github.com/jwilder/dockerize
ENV DOCKERIZE_VERSION v0.6.1
Expand Down
5 changes: 2 additions & 3 deletions datahub/interaction/email_processors/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ def _extract_and_validate_contacts(self, all_recipients):
return contacts

def _extract_and_validate_sender_adviser(self):
try:
sender_email = self.message.from_[0][1]
except IndexError:
if not self.message.from_ or self.message.from_ == [('', '')]:
raise MalformedEmailError('Email was malformed - missing "from" header.')
sender_email = self.message.from_[0][1]
if not was_email_sent_by_dit(self.message):
raise SenderUnverifiedError(
'The meeting email did not pass our minimal checks to be verified as '
Expand Down
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.10.12
python-3.10.16

0 comments on commit 31185e5

Please sign in to comment.