Skip to content

Commit

Permalink
Merge pull request #1134 from bcgov/dev-AA-testrook-FOIMOD-3439
Browse files Browse the repository at this point in the history
#FOIMOD-3439 Removing Sensitive content for REDLINE or for all kind o…
  • Loading branch information
abin-aot authored Sep 5, 2024
2 parents 4b1bf7e + a77ba0f commit 4beca36
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions computingservices/ZippingServices/services/zipperservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ def __zipfilesandupload(_message, s3credentials):

_docbytes = __getdocumentbytearray(fileobj, s3credentials)
_formattedbytes = None
if(filename == "{0}.pdf".format(_message.requestnumber)):
try:
_formattedbytes = __removesensitivecontent(_docbytes)
except Exception:
print(traceback.format_exc())

try:
_formattedbytes = __removesensitivecontent(_docbytes)
except Exception:
print(traceback.format_exc())
zip.writestr(
filename, _docbytes if _formattedbytes is None else _formattedbytes
)
Expand Down

0 comments on commit 4beca36

Please sign in to comment.