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>
This commit is contained in:
Jonathan Corbet
2011-07-11 14:06:54 -06:00
parent 954b559f13
commit 6dace6eee8

View 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.