Subversion Repositories freemyipod

Rev

Rev 938 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 938 Rev 951
Line 139... Line 139...
139
                # Only act on TypeErrors for the function we called, not on TypeErrors raised by another function.
139
                # Only act on TypeErrors for the function we called, not on TypeErrors raised by another function.
140
                if str(e).split(" ", 1)[0] == func + "()":
140
                if str(e).split(" ", 1)[0] == func + "()":
141
                    self.logger.error(usage("Argument Error in '%s': Wrong argument count" % func, specific=func))
141
                    self.logger.error(usage("Argument Error in '%s': Wrong argument count" % func, specific=func))
142
                else:
142
                else:
143
                    raise
143
                    raise
144
            except libemcore.usb.core.USBError:
144
#            except libemcore.usb.core.USBError:
145
                self.logger.error("There is a problem with the USB connection.\n")
145
#                self.logger.error("There is a problem with the USB connection.\n")
146
        else:
146
        else:
147
            usage("No such command!", docstring = False)
147
            usage("No such command!", docstring = False)
148
 
148
 
149
    
149
    
150
    @command
150
    @command