RyanSiu1995 commented on issue #8780:
URL: https://github.com/apache/airflow/issues/8780#issuecomment-625729851


   I have tried to remove all the try except block and get this stacktrace.
   ```
   Traceback (most recent call last):
     File "/usr/local/lib/python3.6/logging/__init__.py", line 1919, in shutdown
       h.close()
     File 
"/data/clover_pipeline/src/airflow/airflow/utils/log/gcs_task_handler.py", line 
81, in close
       self.gcs_write(log, remote_loc)
     File 
"/data/clover_pipeline/src/airflow/airflow/utils/log/gcs_task_handler.py", line 
154, in gcs_write
       self.hook.upload(bkt, blob, tmpfile.name)
     File "/usr/local/lib/python3.6/site-packages/cached_property.py", line 35, 
in __get__
       value = obj.__dict__[self.func.__name__] = self.func(obj)
     File 
"/data/clover_pipeline/src/airflow/airflow/utils/log/gcs_task_handler.py", line 
48, in hook
       google_cloud_storage_conn_id=remote_conn_id
     File 
"/data/clover_pipeline/src/airflow/airflow/contrib/hooks/gcs_hook.py", line 43, 
in __init__
       delegate_to)
     File 
"/data/clover_pipeline/src/airflow/airflow/contrib/hooks/gcp_api_base_hook.py", 
line 131, in __init__
       self.extras = self.get_connection(self.gcp_conn_id).extra_dejson
     File "/data/clover_pipeline/src/airflow/airflow/hooks/base_hook.py", line 
84, in get_connection
       conn = random.choice(list(cls.get_connections(conn_id)))
     File "/data/clover_pipeline/src/airflow/airflow/hooks/base_hook.py", line 
80, in get_connections
       return secrets.get_connections(conn_id)
     File "/data/clover_pipeline/src/airflow/airflow/secrets/__init__.py", line 
52, in get_connections
       conn_list = secrets_backend.get_connections(conn_id=conn_id)
     File "/data/clover_pipeline/src/airflow/airflow/utils/db.py", line 72, in 
wrapper
       with create_session() as session:
     File "/usr/local/lib/python3.6/contextlib.py", line 81, in __enter__
       return next(self.gen)
     File "/data/clover_pipeline/src/airflow/airflow/utils/db.py", line 42, in 
create_session
       session = settings.Session()
   TypeError: 'NoneType' object is not callable
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to