Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sunlight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def _attempt_to_load_apikey():
fp = os.path.expanduser(sunlight.config.KEY_LOCATION)
fd = open(fp, 'r')
sunlight.config.API_KEY = fd.read().strip()
except ImportError as e:
warnings.warn('ImportError; most likely attempting to load pwd on GAE')
except IOError as e:
if e.errno != 2:
warnings.warn('key file %s exists but could not be opened: %s' % (
Expand Down