summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-21 17:20:49 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-09-21 17:20:49 +0200
commit63f280cfefdd0c0281a25c4068481dab226d0c3e (patch)
treea5b7a416786c64c57205ec02f8eb5d87acfbf771 /source4/scripting/python
parent7373bb79d415ae1cc1336aea779e9c2a2ed028d4 (diff)
downloadsamba-63f280cfefdd0c0281a25c4068481dab226d0c3e.tar.gz
samba-63f280cfefdd0c0281a25c4068481dab226d0c3e.tar.bz2
samba-63f280cfefdd0c0281a25c4068481dab226d0c3e.zip
s4:provision - Fix up ProvisioningError class as suggested by Jelmer
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/provision.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index b00f240257..9a41709830 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -58,11 +58,6 @@ from dcerpc.misc import SEC_CHAN_BDC, SEC_CHAN_WKSTA
__docformat__ = "restructuredText"
-
-class ProvisioningError(ValueError):
- pass
-
-
def find_setup_dir():
"""Find the setup directory used by provision."""
dirname = os.path.dirname(__file__)
@@ -81,6 +76,11 @@ def find_setup_dir():
DEFAULTSITE = "Default-First-Site-Name"
+# Exception classes
+
+class ProvisioningError(Exception):
+ """A generic provision error."""
+
class InvalidNetbiosName(Exception):
"""A specified name was not a valid NetBIOS name."""
def __init__(self, name):