fix parameter
This commit is contained in:
parent
cd2fbd5372
commit
5916cbff00
@ -126,7 +126,7 @@ if __name__ == '__main__':
|
|||||||
parser.add_argument("--quiet", help="No console output", action="store_true")
|
parser.add_argument("--quiet", help="No console output", action="store_true")
|
||||||
parser.add_argument("--parser", help="Parser content", default="html.parser")
|
parser.add_argument("--parser", help="Parser content", default="html.parser")
|
||||||
parser.add_argument("--parallel", help="Define number thread (default : 1)", default=1)
|
parser.add_argument("--parallel", help="Define number thread (default : 1)", default=1)
|
||||||
parser.add_argument("--no-ssl", help="No ssl for canalblog and/or wordpress (example wordpress,canalblog)", dest=ssl, default="")
|
parser.add_argument("--no-ssl", help="No ssl for canalblog and/or wordpress (example wordpress,canalblog)", dest="ssl", default="")
|
||||||
|
|
||||||
subparsers = parser.add_subparsers(dest="command")
|
subparsers = parser.add_subparsers(dest="command")
|
||||||
|
|
||||||
|
@ -270,9 +270,11 @@ class WPExport:
|
|||||||
self._mkdirPath("{0}/{1}/{2}".format(backup_dir, o.netloc, dir_page_web))
|
self._mkdirPath("{0}/{1}/{2}".format(backup_dir, o.netloc, dir_page_web))
|
||||||
try:
|
try:
|
||||||
r = self._request.get(webpage[i])
|
r = self._request.get(webpage[i])
|
||||||
except Exception as err:
|
except ConnectionError as err:
|
||||||
self._logger.error("Connection error : {0}".format(err))
|
self._logger.error("{0} : Connection error : {1}".format(self._name, err))
|
||||||
exit(1)
|
exit(1)
|
||||||
|
except Exception as err:
|
||||||
|
self._logger.error("{0} Exception error : {1}".format(self._name, err))
|
||||||
if r.status_code == 200:
|
if r.status_code == 200:
|
||||||
fileDownload = "{0}/{1}/index.html".format(backup_dir, o.netloc)
|
fileDownload = "{0}/{1}/index.html".format(backup_dir, o.netloc)
|
||||||
if len(dir_page_web) > 0 and len(filePageWeb) > 0:
|
if len(dir_page_web) > 0 and len(filePageWeb) > 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user