mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Fix errors importing
This commit is contained in:
parent
27f6c05788
commit
dceadb9476
2 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ jobs:
|
|||
architecture: 'x64'
|
||||
|
||||
- script: |
|
||||
pip install pre-commit pylint -r requirements.txt
|
||||
pip install pre-commit pylint -r requirements.txt -r dev-requirements.txt
|
||||
pre-commit run --all-files
|
||||
displayName: 'Run pre-commit tests'
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@ import typing
|
|||
import nzb2media
|
||||
|
||||
if os.name == 'nt':
|
||||
# pylint: disable-next=no-name-in-module
|
||||
# Silence errors on linux
|
||||
# pylint: disable=import-error
|
||||
# pylint: disable=no-name-in-module
|
||||
from win32api import CloseHandle
|
||||
# pylint: disable-next=no-name-in-module
|
||||
from win32api import GetLastError
|
||||
# pylint: disable-next=no-name-in-module
|
||||
from win32event import CreateMutex
|
||||
from winerror import ERROR_ALREADY_EXISTS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue