added default value for exception class parameter

This commit is contained in:
Rudi Grinberg 2012-11-14 16:50:34 -05:00
parent fcfa5cceee
commit dd139e5028
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class FailedToObtainLocale(Exception):
class CouldNotCreateIndexFile(Exception):
"""exception whenever index file cannot be created"""
def __init__(self, path, cause):
def __init__(self, path, cause=None):
self.path = path
self.cause = cause
def __str__(self): return "Failed to create touch file '%s'" % self.path