print >> exceptFile, 'Detail Product URL Error', sys.exc_info()[0]
                                            pass
                                        
                                        #break
                                    
                            except:
                                print >> exceptFile, 'Depart List Parcing Error', sys.exc_info()[0]
                                pass
                            
                        except:
                            print >> exceptFile, 'Depart Url Error', sys.exc_info()[0]
                            pass

            except IndexError as ierr:
                print >> exceptFile, ierr
            except:
                print >> exceptFile, 'Region url error', sys.exc_info()[0]
                pass
    
            #break
        #break
    #break

print >> exceptFile, "End : %s" % time.ctime()
exceptFile.close()

query = tourQuery.updDepArrYMD(tourAgency, targetYear, targetMonth)
cursor = con.cursor()
cursor.execute(query)
con.commit()
con.close()
            except:
                urlErr += 1
                print >> exceptFile, "Depth 0 :  Error:", sys.exc_info()[0]
                pass
            finally:
                openPackageFile.close()
            #break

#overseasMainUrlsFile.close()
#openOverseas.close()
#openDomestics.close()
openUrlList.close()
print >> exceptFile, "End : %s" % time.ctime()
exceptFile.close()

query = tourQuery.updDepArrYMD(tourAgency, targetYear, targetMonth)
cursor = con.cursor()
cursor.execute(query)
con.commit()
con.close()
#Daum 쇼핑하우는 통신판매중개자로서 상품주문, 배송 및 환불의 의무와 책임은 각 판매업체에 있습니다. 위 내용에 대한 저작권 및 법적 책임은 자료제공사 또는 글쓴이에 있으며 Daum의 입장과 다를 수 있습니다.

print("==========Product List==========")
print(productList)
print('Normal Process: ' + str(normalCnt) + ', Parcing Error: ' +
      str(parcingErr) + ', Parcing Error2 : ' + str(parcingErr2) +
      ', URL Error: ' + str(urlErr))
"""

#aa = requests.get("http://www.modetour.com/Package/List.aspx?startLocation=ICN&location=LOC4&location1=LOC4^LOC3&Theme=THE88&Theme1=THE88&MLoc=01")
#http://www.modetour.com/Xml/Package/Get_Pcode.aspx?Ct=&Month=06&Pcode=ATE101&Pd=&Type=01&term=201406060000%5E201506052359