Skip to content

Commit

Permalink
add missing raise keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
ihji committed Jan 7, 2019
1 parent 3739683 commit 6cf9fba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdks/python/apache_beam/io/gcp/datastore/v1/datastoreio.py
Expand Up @@ -115,11 +115,11 @@ def __init__(self, project, query, namespace=None, num_splits=0):
super(ReadFromDatastore, self).__init__()

if not project:
ValueError("Project cannot be empty")
raise ValueError("Project cannot be empty")
if not query:
ValueError("Query cannot be empty")
raise ValueError("Query cannot be empty")
if num_splits < 0:
ValueError("num_splits must be greater than or equal 0")
raise ValueError("num_splits must be greater than or equal 0")

self._project = project
# using _namespace conflicts with DisplayData._namespace
Expand Down

0 comments on commit 6cf9fba

Please sign in to comment.