You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/06/24 08:25:47 UTC
[GitHub] [airflow] nuclearpinguin commented on a change in pull request
#5431: [AIRFLOW-4782] Make GCP hooks Pylint compatible
nuclearpinguin commented on a change in pull request #5431: [AIRFLOW-4782] Make GCP hooks Pylint compatible
URL: https://github.com/apache/airflow/pull/5431#discussion_r296605044
##########
File path: airflow/contrib/hooks/gcp_pubsub_hook.py
##########
@@ -33,12 +36,13 @@ def _format_topic(project, topic):
return 'projects/{}/topics/{}'.format(project, topic)
-class PubSubException(Exception):
- pass
+# Alias for Exception
+PubSubException = Exception
Review comment:
Unnecessary pass statement but this could be solved by leaving a docstring instead of bare `pass`.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services