mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Switch out print statement against logging.error
This commit is contained in:
parent
3d87f21392
commit
cdb82c6d9b
@ -230,7 +230,7 @@ def parse_requirements(file_):
|
||||
with open(file_, "r") as f:
|
||||
data = [x.strip() for x in f.readlines() if x != "\n"]
|
||||
except OSError as e:
|
||||
print(e)
|
||||
logging.error(e)
|
||||
sys.exit(0)
|
||||
|
||||
parameters = [x for x in data if x.startswith("-")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user