Skip to content

Commit

Permalink
assert that project and repository are strings for a new change
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed May 8, 2011
1 parent b66bab3 commit ca16bdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions master/buildbot/db/changes.py
Expand Up @@ -82,6 +82,9 @@ def addChange(self, who, files, comments, isdir=0, links=None,
@returns: a L{buildbot.changes.changes.Change} instance via Deferred
"""
assert project is not None, "project must be a string, not None"
assert repository is not None, "repository must be a string, not None"

# first create the change, although with no 'number'
change = Change(who=who, files=files, comments=comments, isdir=isdir,
links=links, revision=revision, when=when, branch=branch,
Expand Down

0 comments on commit ca16bdf

Please sign in to comment.