Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
esantamariavazquez committed Aug 1, 2023
1 parent b0dd4ac commit f329e2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ def __init__(self, release_info, parent=None, alias=''):
style = 'p, li { white-space: pre-wrap; } p { font-family: "Roboto ' \
'Mono"; font-size:8pt; color: white;} a {text-decoration: ' \
'none; color:#55aa00;}'
body_ = '<br><p>Developed by (MSc) Eduardo Santamaría-Vázquez & (PhD) ' \
body_ = '<br><p>Developed by (PhD) Eduardo Santamaría-Vázquez & (PhD) ' \
'Víctor Martínez-Cagigal.<br><br>' \
'More information at <a ' \
'href="https://medusabci.com/">www.medusabci.com</a><br><br' \
Expand Down
1 change: 1 addition & 0 deletions src/gui/qt_widgets/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def __update_log(self, message, style):
def format_log_msg(self, msg, **kwargs):
# Default style
kwargs.setdefault('color', self.theme_colors['THEME_TEXT_LIGHT'])
kwargs.setdefault('font-size', '9pt')
# Format css
style = ''
for key, value in kwargs.items():
Expand Down
9 changes: 4 additions & 5 deletions src/updates_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, medusa_interface, platform_release_info,
utils.get_medusa_repo_releases_info(
depth=2, repo='medusa-kernel',
exclude_non_final=True)
except requests.exceptions.ConnectionError as e:
except (ConnectionError, requests.exceptions.ConnectionError) as e:
# If there is no connection, updates are not possible
self.platform_versions_info = None
self.kernel_versions_info = None
Expand Down Expand Up @@ -72,8 +72,8 @@ def check_for_medusa_kernel_updates(self):
if self.kernel_versions_info is None:
return False, None
# Check development
if self.platform_release_info['version'] == 'Dev':
return False, None
# if self.platform_release_info['version'] == 'Dev':
# return False, None
# Get requirement of this version
with open('../requirements.txt', 'r') as f:
requirement = None
Expand Down Expand Up @@ -106,8 +106,7 @@ def check_for_medusa_kernel_updates(self):
'recommended for the current version of MEDUSA\u00A9 '
'Platform. Do you want to update?' % latest_version_info,
'Update available')
if update:
break
break
return update, latest_version_info

@exceptions.error_handler(scope='general')
Expand Down

0 comments on commit f329e2e

Please sign in to comment.