Skip to content

Commit

Permalink
Do not check the type of sqlscript if it is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Jiang committed Mar 10, 2015
1 parent ddaede7 commit 89b4992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataduct/steps/sql_command.py
Expand Up @@ -37,9 +37,9 @@ def __init__(self,
**kwargs(optional): Keyword arguments directly passed to base class
"""
if not exactly_one(command, script, sql_script):
raise ETLInputError('Both command or script found')
raise ETLInputError('Both command and script found')

if not isinstance(sql_script, SqlScript):
if sql_script is not None and not isinstance(sql_script, SqlScript):
raise ETLInputError('sql_script should be of the type SqlScript')

super(SqlCommandStep, self).__init__(**kwargs)
Expand Down

0 comments on commit 89b4992

Please sign in to comment.