Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
dont fail when unable to obtain install_id
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Jan 11, 2017
1 parent 1f6844e commit 3c26638
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cnchi/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

""" Set some Cnchi global constants """

CNCHI_VERSION = "0.14.224"
CNCHI_VERSION = "0.14.226"
CNCHI_WEBSITE = "http://www.antergos.com"
CNCHI_RELEASE_STAGE = "production"

Expand Down
3 changes: 2 additions & 1 deletion cnchi/logging_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ def get_and_save_install_id(self, is_location_screen=False):

try:
r = requests.get(url, headers=headers)
r.raise_for_status()
info = json.loads(r.json())
except Exception as err:
logger = logging.getLogger()
msg = "Unable to get an Id for this installation. Error: {0}".format(err.args)
logger.error(msg)
logger.debug(msg)

try:
self.ip = info['ip']
Expand Down
2 changes: 1 addition & 1 deletion update.info
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"version":"0.14.224","files":[
{"version":"0.14.226","files":[
]}

0 comments on commit 3c26638

Please sign in to comment.