]> xenbits.xensource.com Git - people/larsk/xenproject-org-gitdm.git/commitdiff
Add a default "don't know nothing" FileType
authorJonathan Corbet <corbet@lwn.net>
Mon, 11 Jul 2011 20:06:54 +0000 (14:06 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 11 Jul 2011 20:06:54 +0000 (14:06 -0600)
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>
database.py

index 6a62adc3c4d417509f96c62d6c0ed5f1fd1ab1d3..d8c8095d9c3ae943003bf56dd46925c5f35e32fd 100644 (file)
@@ -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.