SAAS-560: Deploy separate cloud storage config files for each development environment

Small fix
This commit is contained in:
drigato 2015-02-04 14:34:04 -05:00
parent c6fc184559
commit e6171680ad
1 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
import logging import logging
import threading import threading
import multiprocessing import multiprocessing
import ConfigParser
from metadata_analyzer import MetadataAnalyzer from metadata_analyzer import MetadataAnalyzer
from filemover_analyzer import FileMoverAnalyzer from filemover_analyzer import FileMoverAnalyzer
from cloud_storage_uploader import CloudStorageUploader from cloud_storage_uploader import CloudStorageUploader
@ -53,8 +54,8 @@ class AnalyzerPipeline:
raise TypeError("original_filename must be unicode. Was of type " + type(original_filename).__name__ + " instead.") raise TypeError("original_filename must be unicode. Was of type " + type(original_filename).__name__ + " instead.")
if not isinstance(file_prefix, unicode): if not isinstance(file_prefix, unicode):
raise TypeError("file_prefix must be unicode. Was of type " + type(file_prefix).__name__ + " instead.") raise TypeError("file_prefix must be unicode. Was of type " + type(file_prefix).__name__ + " instead.")
if not isinstance(cloud_storage_enabled, bool): if not isinstance(cloud_storage_config, ConfigParser.SafeConfigParser):
raise TypeError("cloud_storage_enabled must be a boolean. Was of type " + type(cloud_storage_enabled).__name__ + " instead.") raise TypeError("cloud_storage_config must be a SafeConfigParser. Was of type " + type(cloud_storage_config).__name__ + " instead.")
# Analyze the audio file we were told to analyze: # Analyze the audio file we were told to analyze: