We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 403e78b commit 5fd586eCopy full SHA for 5fd586e
pyproject.toml
@@ -1,6 +1,6 @@
1
[tool.poetry]
2
name = "procurement-tools"
3
-version = "0.1.6"
+version = "0.1.6_a"
4
description = "Python tools for navigating federal contracting"
5
authors = ["V. David Zvenyach <dave@tandemgov.com>"]
6
readme = "README.md"
src/procurement_tools/sam.py
@@ -8,7 +8,11 @@
8
9
API_KEY = os.environ.get("SAM_API_KEY")
10
if not API_KEY:
11
- API_KEY = keyring.get_password("system", "sam_api_key")
+ try:
12
+ API_KEY = keyring.get_password("system", "sam_api_key")
13
+ except keyring.errors.NoKeyringError:
14
+ print("No API KEY is set, please figure this out!")
15
+ API_KEY = "NONE"
16
BASE_URL = f"https://api.sam.gov/entity-information/v3/entities?api_key={API_KEY}"
17
18
0 commit comments