Skip to content

Commit

Permalink
fix unrelated linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Italo Valcy committed Dec 30, 2024
1 parent 49e8bd6 commit 0063be3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions honeypots/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import psutil
from OpenSSL import crypto
from psutil import process_iter
#from psycopg2 import connect as psycopg2_connect, sql
# from psycopg2 import connect as psycopg2_connect, sql


def set_up_error_logging():
Expand Down Expand Up @@ -251,7 +251,7 @@ def __init__( # noqa: PLR0913
self.custom_filter = custom_filter
if config and "db_postgres_removed" in self.logs:
parsed = urlparse(config["postgres"])
#self.db["db_postgres"] = PostgresClass(
# self.db["db_postgres"] = PostgresClass(
# host=parsed.hostname,
# port=parsed.port,
# username=parsed.username,
Expand Down Expand Up @@ -303,6 +303,7 @@ def emit(self, record: LogRecord): # noqa: C901,PLR0912
stdout.write(f"{json.dumps(log_entry, sort_keys=True, cls=ComplexEncoder)}\n")
stdout.flush()


class SqliteClass:
def __init__(self, file=None, drop=False, uuid=None):
self.file = file
Expand Down

0 comments on commit 0063be3

Please sign in to comment.