Commits

Gregory Petukhov committed e027c32

Improve error reporting in grab.cli

Comments (0)

Files changed (1)

         action_mod = __import__('grab.script.%s' % action_name, None, None, ['foo'])
     except ImportError, ex:
         if (ex.message.startswith('No module named') and
-            'grab.script.%s' % action_name in ex.message):
+            action_name in ex.message):
             pass
         else:
             logging.error('', exc_info=ex)