diff --git a/kallithea/lib/utils2.py b/kallithea/lib/utils2.py --- a/kallithea/lib/utils2.py +++ b/kallithea/lib/utils2.py @@ -451,7 +451,7 @@ def get_changeset_safe(repo, rev): from kallithea.lib.vcs.backends.base import EmptyChangeset if not isinstance(repo, BaseRepository): raise Exception('You must pass an Repository ' - 'object as first argument got %s', type(repo)) + 'object as first argument got %s' % type(repo)) try: cs = repo.get_changeset(rev) diff --git a/kallithea/lib/vcs/backends/git/changeset.py b/kallithea/lib/vcs/backends/git/changeset.py --- a/kallithea/lib/vcs/backends/git/changeset.py +++ b/kallithea/lib/vcs/backends/git/changeset.py @@ -358,7 +358,7 @@ class GitChangeset(BaseChangeset): allowed_kinds = settings.ARCHIVE_SPECS.keys() if kind not in allowed_kinds: raise ImproperArchiveTypeError('Archive kind not supported use one' - 'of %s', allowed_kinds) + 'of %s' % allowed_kinds) if prefix is None: prefix = '%s-%s' % (self.repository.name, self.short_id) diff --git a/kallithea/lib/vcs/backends/hg/changeset.py b/kallithea/lib/vcs/backends/hg/changeset.py --- a/kallithea/lib/vcs/backends/hg/changeset.py +++ b/kallithea/lib/vcs/backends/hg/changeset.py @@ -320,7 +320,7 @@ class MercurialChangeset(BaseChangeset): allowed_kinds = settings.ARCHIVE_SPECS.keys() if kind not in allowed_kinds: raise ImproperArchiveTypeError('Archive kind not supported use one' - 'of %s', allowed_kinds) + 'of %s' % allowed_kinds) if stream is None: raise VCSError('You need to pass in a valid stream for filling'