equal
deleted
inserted
replaced
101 except IOError as e: |
101 except IOError as e: |
102 printIOError(e, "Can't open url " + url) |
102 printIOError(e, "Can't open url " + url) |
103 return None |
103 return None |
104 |
104 |
105 # 3xx, 4xx and 5xx (f|ht)tp codes designate unsuccessfull action |
105 # 3xx, 4xx and 5xx (f|ht)tp codes designate unsuccessfull action |
106 if 3 <= int(src.getcode()/100) <= 5: |
106 if src.getcode() and (3 <= int(src.getcode()/100) <= 5): |
107 print "Error code: " + str(src.getcode()) |
107 print "Error code: " + str(src.getcode()) |
108 return None |
108 return None |
109 |
109 |
110 if filename == None: |
110 if filename == None: |
111 filename = src.geturl().split('/')[-1] |
111 filename = src.geturl().split('/')[-1] |