From 6dace6eee8965d77818f5683873f347d9fb8a0f3 Mon Sep 17 00:00:00 2001 From: Jonathan Corbet Date: Mon, 11 Jul 2011 14:06:54 -0600 Subject: [PATCH] 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 --- database.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- 2.39.5