Commits

Kelsey Hightower committed f4cd781

Adding new pyverify.errors module and relocating VerificationException class

  • Participants
  • Parent commits 272f969

Comments (0)

Files changed (2)

File pyverify/errors.py

+"""pyverify.errors
+
+
+Provides exceptions used by the Pyverify modules.
+"""
+
+
+class PyverifyError(Exception):
+    """Pyverify base exception"""
+
+
+class VerificationException(Exception):
+    """Base exception for verification scripts"""

File pyverify/verify.py

 
 from distutils2._backport.pkgutil import Distribution
 from distutils2._backport.pkgutil import get_distribution
+from pyverify.errors import VerificationException
 
 
 STATUS_CODES = {
     6: {'display': '?', 'description': 'cannot read dist-info'}}
 
 
-class VerificationException(Exception):
-    """Base exception for verification scripts"""
-
-
 def verify_dists(dists=None, paths=None):
     """Verify all distributions provided in dists.