Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fedelemantuano committed Jul 25, 2018
1 parent a08ce7a commit 6db421e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PyYAML
astropy==2.0.7
astropy==1.3.3
backports.functools-lru-cache>=1.3
chainmap
lxml
Expand Down
3 changes: 2 additions & 1 deletion src/modules/attachments/post_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def tika(conf, attachments):

for a in attachments:
if not a.get("is_filtered", False):
if a["Content-Type"] in conf["whitelist_content_types"]:
if a["Content-Type"] in \
conf.get("whitelist_content_types", []):
payload = a["payload"]

if a["content_transfer_encoding"] != "base64":
Expand Down

0 comments on commit 6db421e

Please sign in to comment.