Exemplo n.º 1
0
 def system(cmd, stdin=None):
     try:
         return defaultsystem(cmd, stdin, shell=True).strip()
     except (OSError, AcrylamidException) as e:
         log.warn('%s: %s' % (e.__class__.__name__, unicode(e)))
         return unicode(e)
Exemplo n.º 2
0
 def system(cmd):
     try:
         return defaultsystem(cmd, shell=True).strip()
     except (OSError, AcrylamidException) as e:
         log.warn('%s: %s' % (e.__class__.__name__, e.args[0]))
         return e.args[0]
Exemplo n.º 3
0
 def system(cmd, stdin=None):
     try:
         return defaultsystem(cmd, stdin, shell=True).strip()
     except (OSError, AcrylamidException) as e:
         log.warn('%s: %s' % (e.__class__.__name__, e.args[0]))
         return e.args[0]