This commit is contained in:
Kovid Goyal 2012-09-01 14:55:26 +05:30
parent 49d1fbad18
commit 9a110fb0d5

View File

@ -21,7 +21,8 @@ from calibre.devices.mtp.base import MTPDeviceBase
class ThreadingViolation(Exception): class ThreadingViolation(Exception):
def __init__(self): def __init__(self):
Exception.__init__(self, 'You cannot use the MTP driver from a thread other than the ' Exception.__init__(self,
'You cannot use the MTP driver from a thread other than the '
' thread in which startup() was called') ' thread in which startup() was called')
def same_thread(func): def same_thread(func):