From 4ff4932ee7e035f658d91914145c7ff1295fb3b7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 23 2015 13:23:10 +0000 Subject: raise the exception, otherwise that won't work --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index ab03a04..64a6b3f 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -961,7 +961,7 @@ def new_pull_request(session, branch_from, status='Open', notify=True): ''' Create a new pull request on the specified repo. ''' if not repo_from and not remote_git: - pagure.exceptions.PagureException( + raise pagure.exceptions.PagureException( 'Invalid input, you must specify either a local repo or a ' 'remote one')