Skip to content

Commit

Permalink
bug fix in case of ValueError in retrieving latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Jul 12, 2018
1 parent 9b6c579 commit 4ae4c16
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion freeze/SoundSpeedManager.1folder.spec
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if is_darwin:

a = Analysis(['SoundSpeedManager.py'],
pathex=[],
hiddenimports=["PIL", "scipy._lib.messagestream"],
hiddenimports=["PIL", "scipy._lib.messagestream", "cftime._cftime"],
excludes=[
"IPython", "PyQt", "pandas", "sphinx", "sphinx_rtd_theme", "OpenGL_accelerate",
"FixTk", "tcl", "tk", "_tkinter", "tkinter", "Tkinter",
Expand Down
2 changes: 1 addition & 1 deletion hyo/soundspeed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())

__version__ = '2018.1.41'
__version__ = '2018.1.42'
__doc__ = "Sound Speed"
__author__ = '[email protected]; [email protected]; [email protected]; ' \
'[email protected]'
Expand Down
2 changes: 1 addition & 1 deletion hyo/soundspeedmanager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())

__version__ = '2018.1.41'
__version__ = '2018.1.42'
__doc__ = "Sound Speed Manager"
__author__ = '[email protected]; [email protected]; [email protected]; ' \
'[email protected]'
Expand Down
4 changes: 2 additions & 2 deletions hyo/soundspeedmanager/mainwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ def _check_latest_release(self):
elif (int(lat_maj) == int(cur_maj)) and (int(lat_min) == int(cur_min)) and (int(lat_fix) > int(cur_fix)):
new_bugfix = True

except (URLError, ssl.SSLError, socket.timeout, ConnectionResetError) as e:
logger.info("unable to check latest release")
except (URLError, ssl.SSLError, socket.timeout, ConnectionResetError, ValueError) as e:
logger.info("unable to check latest release (reason: %s)" % e)

if new_release:
logger.info("new release available: %s" % latest_version)
Expand Down
2 changes: 1 addition & 1 deletion hyo/soundspeedsettings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())

__version__ = '2018.1.41'
__version__ = '2018.1.42'
__doc__ = "Sound Speed Settings"
__author__ = '[email protected]; [email protected]; [email protected]; ' \
'[email protected]'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def txt_read(*paths):
setup_args = dict()

setup_args['name'] = 'hyo.soundspeed'
setup_args['version'] = '2018.1.41'
setup_args['version'] = '2018.1.42'
setup_args['url'] = 'https://bitbucket.org/ccomjhc/hyo_soundspeed/'
setup_args['license'] = 'LGPLv2.1 or CCOM-UNH Industrial Associate license'
setup_args['author'] = 'Giuseppe Masetti(UNH,CCOM); Barry Gallagher(NOAA,OCS); ' \
Expand Down

0 comments on commit 4ae4c16

Please sign in to comment.