Skip to content

Commit

Permalink
when unicode strings are passed as change_hook_auth parameters for We…
Browse files Browse the repository at this point in the history
…bStatus hooks (when using JSON files as configuration for example), the __init__ method fails, just fix that
  • Loading branch information
DamnWidget committed Dec 5, 2013
1 parent 70f2e06 commit 1836bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/status/web/baseweb.py
Expand Up @@ -337,7 +337,7 @@ def __init__(self, http_port=None, distrib_port=None, allowForce=None,
if change_hook_auth is not None:
self.change_hook_auth = []
for checker in change_hook_auth:
if isinstance(checker, str):
if isinstance(checker, str) or isinstance(checker, unicode):
try:
checker = strcred.makeChecker(checker)
except Exception, error:
Expand Down

0 comments on commit 1836bbd

Please sign in to comment.