From 5d52726d5bc7626ae8cffcedf5882ab1afdf5db1 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 17 Jan 2016 21:28:32 -0500 Subject: Add dotfile-already-exists exception --- dotfiles/exceptions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dotfiles/exceptions.py b/dotfiles/exceptions.py index 2469b80..e6939b2 100644 --- a/dotfiles/exceptions.py +++ b/dotfiles/exceptions.py @@ -63,6 +63,12 @@ class DoesNotExist(DotfileException): DotfileException.__init__(self, path, 'doest not exist') +class Exists(DotfileException): + + def __init__(self, path): + DotfileException.__init__(self, path, 'already exists') + + class TargetExists(DotfileException): def __init__(self, path): -- cgit v1.2.3