import datetime
import shutil
import sys
+import socket
+
+socket.setdefaulttimeout(10)
supports_alpha = False
# constants. dbfile is the location of the csv
# comiccache is the location of the images
-APP_VERSION = "0.3.4-1"
+APP_VERSION = "0.3.4-2"
basedbdir = "/opt/comic-widget/db/"
imagedir = "/opt/comic-widget/images/"
print "created dir"
except:
print "comic db creation failed on mkdir"
- urllib.urlretrieve(dbrow['url'], filename)
+ try:
+
+ urllib.urlretrieve(dbrow['url'], filename)
+ except:
+ if os.path.isfile(filename):
+ os.remove(filename)
print "success\n"
return filename