summaryrefslogtreecommitdiff
path: root/scripts/maint/practracker/problem.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/maint/practracker/problem.py')
-rw-r--r--scripts/maint/practracker/problem.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/maint/practracker/problem.py b/scripts/maint/practracker/problem.py
index d5ebedd17f..c82c5db572 100644
--- a/scripts/maint/practracker/problem.py
+++ b/scripts/maint/practracker/problem.py
@@ -19,10 +19,13 @@ class ProblemVault(object):
found in the code, and also the old problems we read from the exception
file.
"""
- def __init__(self, exception_fname):
+ def __init__(self, exception_fname=None):
# Exception dictionary: { problem.key() : Problem object }
self.exceptions = {}
+ if exception_fname == None:
+ return
+
try:
with open(exception_fname, 'r') as exception_f:
self.register_exceptions(exception_f)