Skip to content

Commit

Permalink
Fix a few more lint issues
Browse files Browse the repository at this point in the history
Change-Id: I0d420f3053f391fa225e4b8179e45fd1138f5c65
  • Loading branch information
Jon Wayne Parrott committed Oct 24, 2017
1 parent a36f6f3 commit ad66781
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions samples/snippets/iam_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def topic(publisher_client):

try:
publisher_client.delete_topic(topic_path)
except:
except Exception:
pass

publisher_client.create_topic(topic_path)
Expand All @@ -55,7 +55,7 @@ def subscription(subscriber_client, topic):

try:
subscriber_client.delete_subscription(subscription_path)
except:
except Exception:
pass

subscriber_client.create_subscription(subscription_path, topic=topic)
Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/publisher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def topic(client):

try:
client.delete_topic(topic_path)
except:
except Exception:
pass

client.create_topic(topic_path)
Expand All @@ -55,7 +55,7 @@ def test_create(client):
topic_path = client.topic_path(PROJECT, TOPIC)
try:
client.delete_topic(topic_path)
except:
except Exception:
pass

publisher.create_topic(PROJECT, TOPIC)
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/quickstart_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def temporary_topic():

try:
publisher.delete_topic(TOPIC_PATH)
except:
except Exception:
pass

yield
Expand Down
6 changes: 3 additions & 3 deletions samples/snippets/subscriber_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def topic(publisher_client):

try:
publisher_client.delete_topic(topic_path)
except:
except Exception:
pass

publisher_client.create_topic(topic_path)
Expand All @@ -58,7 +58,7 @@ def subscription(subscriber_client, topic):

try:
subscriber_client.delete_subscription(subscription_path)
except:
except Exception:
pass

subscriber_client.create_subscription(subscription_path, topic=topic)
Expand All @@ -79,7 +79,7 @@ def test_create(subscriber_client):
PROJECT, SUBSCRIPTION)
try:
subscriber_client.delete_subscription(subscription_path)
except:
except Exception:
pass

subscriber.create_subscription(PROJECT, TOPIC, SUBSCRIPTION)
Expand Down

0 comments on commit ad66781

Please sign in to comment.