fix: linter warnings
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
__version__ = "0.1.2"
|
||||
__version__ = "0.1.3"
|
||||
|
||||
from .client import PPGEE
|
||||
|
||||
__all__ = [
|
||||
"PPGEE",
|
||||
]
|
||||
|
||||
@@ -34,7 +34,10 @@ async def cli():
|
||||
|
||||
|
||||
def main():
|
||||
asyncio.run(cli())
|
||||
try:
|
||||
asyncio.run(cli())
|
||||
except KeyboardInterrupt:
|
||||
print("Keyboard Interrupt. Exiting.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -39,7 +39,7 @@ class PPGEE:
|
||||
await self.login()
|
||||
return self
|
||||
|
||||
async def __aexit__(self, exc_type, exc, tb) -> None:
|
||||
async def __aexit__(self, *_) -> None:
|
||||
if self.is_logged:
|
||||
await self.logoff()
|
||||
await self.close()
|
||||
@@ -48,7 +48,7 @@ class PPGEE:
|
||||
logger.info("Logging in...")
|
||||
if self.user and self.password:
|
||||
resp = await self.http.login(self.user, self.password)
|
||||
if "aindex" not in resp: # authentication failed
|
||||
if "aindex" not in resp: # authentication failed
|
||||
await self.close()
|
||||
raise errors.InvalidCredentialsException()
|
||||
self.is_logged = True
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
from .frequency import FrequencyPage
|
||||
|
||||
__all__ = [
|
||||
"FrequencyPage",
|
||||
]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "ppgee"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
description = ""
|
||||
authors = ["tiagovla <tiagovla@gmail.com>"]
|
||||
|
||||
|
||||
@@ -2,4 +2,4 @@ from ppgee import __version__
|
||||
|
||||
|
||||
def test_version():
|
||||
assert __version__ == "0.1.2"
|
||||
assert __version__ == "0.1.3"
|
||||
|
||||
Reference in New Issue
Block a user