From 528f09cc847408197cf318b7a497ef6505bb7ec0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 05 2015 08:12:44 +0000 Subject: Add new exception class when trying to access a branch that we cannot find --- diff --git a/pagure/exceptions.py b/pagure/exceptions.py index 3b95fdc..3d8d304 100644 --- a/pagure/exceptions.py +++ b/pagure/exceptions.py @@ -37,3 +37,10 @@ class APIError(PagureException): self.status_code = status_code self.error_code = error_code self.error = error + + +class BranchNotFoundException(PagureException): + ''' Exception thrown when trying to use a branch that could not be + found in a repository. + ''' + pass