Fix ebook-devide not passing a library uuid in dev.open()

This commit is contained in:
Kovid Goyal 2011-03-08 14:03:46 -07:00
parent 6046ed793e
commit 484caafc32

View File

@ -6,7 +6,7 @@ Provides a command-line and optional graphical interface to the SONY Reader PRS-
For usage information run the script.
"""
import StringIO, sys, time, os
import StringIO, sys, time, os, uuid
from optparse import OptionParser
from calibre import __version__, __appname__
@ -213,7 +213,7 @@ def main():
for d in connected_devices:
try:
d.open()
d.open(str(uuid.uuid4()))
except:
continue
else: