Changeset a1c35312398cd2c714b53f8f2555fdb852ccb408

Show
Ignore:
Timestamp:
03/26/08 22:27:32 (10 months ago)
Author:
Jason Michalski <armooo@armooo.net>
git-committer:
Jason Michalski <armooo@armooo.net> 1206588452 -0500
git-parent:

[2578ef51e558341055e1871ee7022d306aa55970]

git-author:
Jason Michalski <armooo@armooo.net> 1206588452 -0500
Message:

Adding back in failed plugin errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugin.py

    r2578ef5 ra1c3531  
    1313 
    1414def GetPlugin(name): 
    15     module_name = '.'.join(['plugins', name, name]) 
    16     module = __import__(module_name, globals(), locals(), name) 
    17     plugin = getattr(module, module.CLASS_NAME)() 
    18     return plugin 
    19     #except ImportError: 
    20     #    print 'Error no', name, 'plugin exists. Check the type ' \ 
    21     #    'setting for your share.' 
    22     #    return Error 
     15    try: 
     16        module_name = '.'.join(['plugins', name, name]) 
     17        module = __import__(module_name, globals(), locals(), name) 
     18        plugin = getattr(module, module.CLASS_NAME)() 
     19        return plugin 
     20    except ImportError: 
     21        print 'Error no', name, 'plugin exists. Check the type ' \ 
     22        'setting for your share.' 
     23        return Error 
    2324 
    2425class Plugin(object):