Skip to content

Commit

Permalink
Catch errors when trying to load libsamplerate to enable building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVinyard committed Aug 27, 2017
1 parent e73c27f commit 6dce0a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zounds/soundfile/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
from zounds.timeseries import SR44100, AudioSamples
from zounds.core import ArrayWithUnits

libsamplerate = CDLL('libsamplerate.so')
try:
libsamplerate = CDLL('libsamplerate.so')
except OSError:
# KLUDGE: This is here to support building documentation on readthedocs
pass

from featureflow import Node

Expand Down

0 comments on commit 6dce0a7

Please sign in to comment.