Merge branch 'master' into 'master'
Master
This commit is contained in:
commit
5f6c0cacd0
1 changed files with 12 additions and 1 deletions
|
@ -28,7 +28,18 @@ RE_JOB_NAME = re.compile('JobLogName_')
|
||||||
RE_JOB_STATUS = re.compile('JobLogStatus_')
|
RE_JOB_STATUS = re.compile('JobLogStatus_')
|
||||||
RE_JOB_DATE = re.compile('JobLogDate_')
|
RE_JOB_DATE = re.compile('JobLogDate_')
|
||||||
|
|
||||||
|
try:
|
||||||
req = requests.get(URL_JOBLIST, verify=CA)
|
req = requests.get(URL_JOBLIST, verify=CA)
|
||||||
|
except requests.exceptions.ConnectionError:
|
||||||
|
print '''L'imprimante est injoignable. Une intervention manuelle peut être nécessaire
|
||||||
|
Le script de notification d'impressions'''
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
if req.status_code!=200:
|
||||||
|
print '''L'imprimante est injoignable. Une intervention manuelle peut être nécessaire
|
||||||
|
Le script de notification d'impressions'''
|
||||||
|
exit(1)
|
||||||
|
|
||||||
doc = BeautifulSoup.BeautifulSoup(req.text)
|
doc = BeautifulSoup.BeautifulSoup(req.text)
|
||||||
con = shortcuts.lc_ldap_readonly()
|
con = shortcuts.lc_ldap_readonly()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue