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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user