Revision 643d7283 snf-image-host/pithcat

b/snf-image-host/pithcat
26 26
"""
27 27

  
28 28
from optparse import OptionParser
29
from sys import exit, stdout
29
from sys import exit, stdout, stderr
30 30

  
31
from pithos.backends.modular import ModularBackend
31
try:
32
    from pithos.backends.modular import ModularBackend
33
except ImportError:
34
    stderr.write("Pithos backend was not found.\n")
35
    exit(2)
32 36

  
33 37

  
34 38
parser = OptionParser(usage='%prog [options] <URL>')

Also available in: Unified diff