Skip to content

Commit

Permalink
python: replace warning with logging
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Aug 5, 2023
1 parent dc07975 commit 130092e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import hashlib
import binascii
import datetime
import warnings
import logging
from functools import wraps
from typing import Optional
Expand Down Expand Up @@ -427,7 +426,7 @@ def usb_list(cls):
if len(serial) == 24:
ret.append(serial)
else:
warnings.warn(f"found device with panda descriptors but invalid serial: {serial}", RuntimeWarning)
logging.warning(f"found device with panda descriptors but invalid serial: {serial}", RuntimeWarning)
except Exception:
continue
except Exception:
Expand Down

0 comments on commit 130092e

Please sign in to comment.