mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
14 lines
388 B
Python
14 lines
388 B
Python
|
|
class BranchNotFoundError(ValueError):
|
|
def __init__(self, branch, repo=None):
|
|
self.branch = branch
|
|
self.repo = repo
|
|
|
|
def __str__(self):
|
|
if self.repo:
|
|
repo_str = " in repo: %s" % self.repo
|
|
else:
|
|
repo_str = ""
|
|
return "Branch '{branch}' not found{repo_str}!".format(
|
|
branch=self.branch, repo_str=repo_str)
|