Skip to content

Commit 4ce0231

Browse files
committed
apply some Python lints
1 parent 8686866 commit 4ce0231

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

webext/app/credential_manager_shim.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
import asyncio
44
import base64
5-
import base64
65
import codecs
76
from dataclasses import dataclass
87
from enum import Enum
98
import json
109
import logging
1110
import struct
12-
import struct
1311
import sys
1412
from typing import Optional
1513

@@ -28,8 +26,8 @@ def getMessage():
2826
logging.debug(f"unpacking struct: {rawLength}")
2927
messageLength = struct.unpack('@I', rawLength)[0]
3028
logging.debug(f"reading {messageLength} bytes")
31-
except:
32-
logging.error("Failed to convert rawLength to integer")
29+
except Exception as e:
30+
logging.error("Failed to convert rawLength to integer", exc_info=e)
3331
try:
3432
raw_msg = sys.stdin.buffer.read(messageLength)
3533
logging.debug(f"received bytes: {raw_msg}")

0 commit comments

Comments
 (0)