diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-01-17 21:28:32 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-17 21:28:32 -0500 |
commit | 5d52726d5bc7626ae8cffcedf5882ab1afdf5db1 (patch) | |
tree | e09d7373ac9ffd6815b417568c2339afb97e2c05 | |
parent | be19f492993df48d4dcff4ff05ef03ed31084696 (diff) | |
download | dotfiles-5d52726d5bc7626ae8cffcedf5882ab1afdf5db1.tar.gz dotfiles-5d52726d5bc7626ae8cffcedf5882ab1afdf5db1.tar.bz2 dotfiles-5d52726d5bc7626ae8cffcedf5882ab1afdf5db1.zip |
Add dotfile-already-exists exception
-rw-r--r-- | dotfiles/exceptions.py | 6 |
1 files changed, 6 insertions, 0 deletions
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): |