diff --git a/.github/workflows/updateDomains.yml b/.github/workflows/updateDomains.yml index f0299de8..4d798819 100644 --- a/.github/workflows/updateDomains.yml +++ b/.github/workflows/updateDomains.yml @@ -14,12 +14,13 @@ jobs: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: - python-version: 2.7 + python-version: 3.7 + + - name: Install dependencies + run: pip install requests - name: Update domains - run: | - pip install requests - python tools/updateDomains.py + run: python tools/updateDomains.py - name: Commit & Push changes uses: actions-js/push@master diff --git a/tools/updateDomains.py b/tools/updateDomains.py index 5f42ee12..0b294f1c 100644 --- a/tools/updateDomains.py +++ b/tools/updateDomains.py @@ -73,7 +73,7 @@ if __name__ == '__main__': rslt['code_new'] = 200 except Exception as e: import traceback - traceback.print_last() + traceback.print_exc() # non-existent site elif rslt['code'] == -2: print('Host Sconosciuto - '+ str(rslt['code']) +' - '+ host)