diff --git a/kallithea/lib/dbmigrate/migrate/versioning/shell.py b/kallithea/lib/dbmigrate/migrate/versioning/shell.py --- a/kallithea/lib/dbmigrate/migrate/versioning/shell.py +++ b/kallithea/lib/dbmigrate/migrate/versioning/shell.py @@ -207,7 +207,7 @@ def main(argv=None, **kwargs): ret = command_func(**kwargs) if ret is not None: log.info(ret) - except (exceptions.UsageError, exceptions.KnownError), e: + except (exceptions.UsageError, exceptions.KnownError) as e: parser.error(e.args[0]) if __name__ == "__main__":