Changeset 4803


Ignore:
Timestamp:
May 17, 2017, 8:50:23 AM (2 years ago)
Author:
Juanma
Message:
  • loadStore: Catch filenotfound when executing lliurex-version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-store/trunk/fuentes/python3-lliurex-store.install/usr/share/lliurexstore/plugins/loadStore.py

    r4749 r4803  
    137137                        flavour=flavour.decode("utf-8")
    138138                        if flavour=='None':
    139                                 self._debug("Meta unavailable")
     139                                self._debug("Unknown flavour. Switching to desktop")
    140140                                flavour='desktop'
    141                 except subprocess.CalledProcessError as e:
    142                                 self_debug("Running on a non Lliurex host")
    143                                 flavour='server'
     141                except (subprocess.CalledProcessError,FileNotFoundError) as e:
     142                                self._debug("Running on a non Lliurex host")
     143                                flavour='desktop'
    144144                try:
    145145                        if os.path.isfile('/usr/share/lliurex-store/files/blacklist.json'):
Note: See TracChangeset for help on using the changeset viewer.