From: Jonathan Corbet Date: Mon, 11 Jul 2011 20:06:54 +0000 (-0600) Subject: Add a default "don't know nothing" FileType X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6dace6eee8965d77818f5683873f347d9fb8a0f3;p=people%2Flarsk%2Fxenproject-org-gitdm.git 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 --- 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.