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)
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]
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]