From dd139e5028c193edd4ff99d1f05ed5dd3e04a432 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 14 Nov 2012 16:50:34 -0500 Subject: [PATCH] added default value for exception class parameter --- python_apps/media-monitor2/media/monitor/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/media-monitor2/media/monitor/exceptions.py b/python_apps/media-monitor2/media/monitor/exceptions.py index b7b834920..f7d022fb1 100644 --- a/python_apps/media-monitor2/media/monitor/exceptions.py +++ b/python_apps/media-monitor2/media/monitor/exceptions.py @@ -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