kmisc 2.1.107__tar.gz → 2.1.109__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kmisc-2.1.107 → kmisc-2.1.109}/PKG-INFO +1 -1
- {kmisc-2.1.107 → kmisc-2.1.109}/kmisc/__init__.py +13 -2
- {kmisc-2.1.107 → kmisc-2.1.109}/kmisc.egg-info/PKG-INFO +1 -1
- {kmisc-2.1.107 → kmisc-2.1.109}/LICENSE +0 -0
- {kmisc-2.1.107 → kmisc-2.1.109}/README.md +0 -0
- {kmisc-2.1.107 → kmisc-2.1.109}/kmisc.egg-info/SOURCES.txt +0 -0
- {kmisc-2.1.107 → kmisc-2.1.109}/kmisc.egg-info/dependency_links.txt +0 -0
- {kmisc-2.1.107 → kmisc-2.1.109}/kmisc.egg-info/top_level.txt +0 -0
- {kmisc-2.1.107 → kmisc-2.1.109}/pyproject.toml +0 -0
- {kmisc-2.1.107 → kmisc-2.1.109}/setup.cfg +0 -0
- {kmisc-2.1.107 → kmisc-2.1.109}/setup.py +0 -0
@@ -1603,12 +1603,20 @@ class EMAIL:
|
|
1603
1603
|
if IsNone(self.user): self.user=sender
|
1604
1604
|
try:
|
1605
1605
|
server=smtplib.SMTP_SSL(self.server,self.port,context=context)
|
1606
|
+
except:
|
1607
|
+
print(f'Can not connect to {self.server}:{self.port}. If local server then please check the SMTP Server')
|
1608
|
+
return False
|
1609
|
+
try:
|
1606
1610
|
server.login(self.user, self.password)
|
1607
1611
|
except:
|
1608
1612
|
print('Login fail at the server({})'.format(self.server))
|
1609
1613
|
return False
|
1610
1614
|
else:
|
1611
|
-
|
1615
|
+
try:
|
1616
|
+
server=smtplib.SMTP(self.server,self.port)
|
1617
|
+
except:
|
1618
|
+
print(f'Can not connect to {self.server}:{self.port}. If local server then please check the SMTP Server')
|
1619
|
+
return False
|
1612
1620
|
if self.tls:
|
1613
1621
|
if not self.password:
|
1614
1622
|
print('It required mail server({}) login password'.format(self.server))
|
@@ -2520,7 +2528,10 @@ def net_send_data(sock,data,key='kg',enc=False,timeout=0,instant=False,log=None,
|
|
2520
2528
|
|
2521
2529
|
def net_receive_data(sock,key='kg',progress=None,retry=0,retry_timeout=30,progress_msg=None,log=None,err_scr=True):
|
2522
2530
|
# decode code here
|
2523
|
-
|
2531
|
+
try:
|
2532
|
+
ok,size,data_type,enc=packet_head(sock,retry=retry,timeout=retry_timeout)
|
2533
|
+
except:
|
2534
|
+
return [False,None]
|
2524
2535
|
if krc(ok,chk=True):
|
2525
2536
|
# File not found Error log size is 57. So if 57 then ignore progress
|
2526
2537
|
if size == 57: progress=False
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|