Skip to content

Commit

Permalink
Upgrade msglite
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Oct 30, 2019
1 parent 4273910 commit 406f7d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions services/ingest-file/ingestors/email/outlookmsg.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ def get_identity(self, name, email):
def ingest(self, file_path, entity):
entity.schema = model.get('Email')
try:
msg = Message(file_path)
msg = Message(file_path.as_posix())
except Exception as exc:
raise ProcessingException("Cannot open message file.") from exc
msg = "Cannot open message file: %s" % exc
raise ProcessingException(msg) from exc

self.extract_olefileio_metadata(msg, entity)

Expand Down
1 change: 1 addition & 0 deletions services/ingest-file/ingestors/tabular/xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def ingest(self, file_path, entity):
table = self.manager.make_entity('Table', parent=entity)
table.make_id(entity.id, name)
table.set('title', name)
log.debug('Sheet: %s', name)
self.emit_row_tuples(table, self.generate_rows(book[name]))
if table.has('csvHash'):
self.manager.emit_entity(table)
Expand Down
2 changes: 1 addition & 1 deletion services/ingest-file/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lxml==4.4.1
olefile==0.46
pillow==6.2.1
vobject==0.9.6.1
msglite==0.25.0
msglite==0.26.0

cryptography==2.8
requests[security]==2.22.0

0 comments on commit 406f7d1

Please sign in to comment.