summaryrefslogtreecommitdiff
path: root/database.py
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2011-07-11 14:06:54 -0600
committerJonathan Corbet <corbet@lwn.net>2011-07-11 14:06:54 -0600
commit6dace6eee8965d77818f5683873f347d9fb8a0f3 (patch)
tree8b53c51e759979dccf179967ed8779a618bacf77 /database.py
parent954b559f131a1a801c135463eefbd12d5303eaa2 (diff)
Add a default "don't know nothing" FileType
Otherwise things crash if the configuration does not provide a file type map, even if nobody is asking for file type reports. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'database.py')
-rw-r--r--database.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/database.py b/database.py
index 6a62adc..d8c8095 100644
--- a/database.py
+++ b/database.py
@@ -205,7 +205,10 @@ class FileType:
return 'unknown'
-FileTypes = None
+#
+# By default we recognize nothing.
+#
+FileTypes = FileType ({}, [])
#
# Mix all the virtual employers into their real destinations.