From: yomguy Date: Sat, 6 Oct 2012 13:10:35 +0000 (+0200) Subject: add IOError if file not found (closes: #5) X-Git-Tag: 0.4.2~23 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4f0bc85451cac42a66cc2dc3dcd171760de2e647;p=timeside.git add IOError if file not found (closes: #5) --- diff --git a/timeside/__init__.py b/timeside/__init__.py index e1b8e0b..d7db4c1 100644 --- a/timeside/__init__.py +++ b/timeside/__init__.py @@ -1,3 +1,15 @@ # -*- coding: utf-8 -*- +import timeside.api +import timeside.exceptions +import timeside.core +import timeside.component +import timeside.metadata +import timeside.decoder +import timeside.encoder +import timeside.grapher +import timeside.analyzer +from timeside.core import * +from timeside.gstutils import * + __version__ = '0.4.2' diff --git a/timeside/decoder/core.py b/timeside/decoder/core.py index 5feae44..d502e3e 100644 --- a/timeside/decoder/core.py +++ b/timeside/decoder/core.py @@ -63,7 +63,7 @@ class FileDecoder(Processor): from urllib import quote self.uri = 'file://'+quote(uri) else: - self.uri = uri + raise IOError, 'File not found!' def setup(self, channels = None, samplerate = None, blocksize = None): # the output data format we want