actions updateDomains con py3
This commit is contained in:
@@ -14,12 +14,13 @@ jobs:
|
|||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 2.7
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install requests
|
||||||
|
|
||||||
- name: Update domains
|
- name: Update domains
|
||||||
run: |
|
run: python tools/updateDomains.py
|
||||||
pip install requests
|
|
||||||
python tools/updateDomains.py
|
|
||||||
|
|
||||||
- name: Commit & Push changes
|
- name: Commit & Push changes
|
||||||
uses: actions-js/push@master
|
uses: actions-js/push@master
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ if __name__ == '__main__':
|
|||||||
rslt['code_new'] = 200
|
rslt['code_new'] = 200
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_last()
|
traceback.print_exc()
|
||||||
# non-existent site
|
# non-existent site
|
||||||
elif rslt['code'] == -2:
|
elif rslt['code'] == -2:
|
||||||
print('Host Sconosciuto - '+ str(rslt['code']) +' - '+ host)
|
print('Host Sconosciuto - '+ str(rslt['code']) +' - '+ host)
|
||||||
|
|||||||
Reference in New Issue
Block a user