stale[bot] closed pull request #3912: [AIRFLOW-3077] Default Not to Raise Error
When PyMongo Contruct JSON Data
URL: https://github.com/apache/incubator-airflow/pull/3912
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/airflow/contrib/hooks/mongo_hook.py
b/airflow/contrib/hooks/mongo_hook.py
index 80ceddec14..bd495eb294 100644
--- a/airflow/contrib/hooks/mongo_hook.py
+++ b/airflow/contrib/hooks/mongo_hook.py
@@ -70,6 +70,9 @@ def get_conn(self):
if options.get('ssl', False):
options.update({'ssl_cert_reqs': CERT_NONE})
+ if not options.get('unicode_decode_error_handler', False):
+ options.update({'unicode_decode_error_handler': 'ignore'})
+
self.client = MongoClient(uri, **options)
return self.client
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services