Skip to content

Commit

Permalink
added warning for connection if get_FDN
Browse files Browse the repository at this point in the history
  • Loading branch information
KorayKirli committed Nov 3, 2016
1 parent 6956622 commit 549db81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wranglertools/fdnDCIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def get_FDN(obj_id, connection, frame="object"):
except:
logging.debug('GET RESPONSE text %s' % (response.text))
if not response.status_code == 200:
print("\nWARNING!: Problem with access, please check your keys.\n")
if response.json().get("notification"):
logging.warning('%s' % (response.json().get("notification")))
else:
Expand Down

0 comments on commit 549db81

Please sign in to comment.