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:
[email protected]
With regards,
Apache Git Services