Changeset - e56cbfcc94bd
[Not reviewed]
0 1 0
Lance Edgar (lance) - 21 months ago 2023-02-03 15:17:15
lance@edbob.org
Avoid error when fetching all upgrade systems

this logic is invoked when showing the Upgrades listing in tailbone,
so do not want error there unless something "really" wrong
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rattail/upgrades.py
Show inline comments
 
@@ -2,7 +2,7 @@
 
################################################################################
 
#
 
#  Rattail -- Retail Software Framework
 
#  Copyright © 2010-2022 Lance Edgar
 
#  Copyright © 2010-2023 Lance Edgar
 
#
 
#  This file is part of Rattail.
 
#
 
@@ -24,8 +24,6 @@
 
Upgrade handlers
 
"""
 

	
 
from __future__ import unicode_literals, absolute_import
 

	
 
import os
 
import shutil
 
import subprocess
 
@@ -64,7 +62,7 @@ class UpgradeHandler(GenericHandler):
 
        systems.insert(0, {
 
            'key': 'rattail',
 
            'label': self.config.app_title(),
 
            'command': self.config.require('rattail.upgrades', 'command'),
 
            'command': self.config.get('rattail.upgrades', 'command'),
 
        })
 

	
 
        return systems
0 comments (0 inline, 0 general)