mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 17:57:01 +00:00
Improve error.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#
|
||||
############################################################
|
||||
import os
|
||||
import sys
|
||||
import fnmatch
|
||||
from onl.upgrade import ubase
|
||||
|
||||
@@ -147,7 +148,7 @@ if __name__ == '__main__':
|
||||
elif arch == 'x86_64':
|
||||
klass = Loader_Upgrade_x86_64
|
||||
else:
|
||||
raise Exception("The current architecture (%s) is not supported for upgrade." % arch)
|
||||
|
||||
klass().main()
|
||||
sys.stderr.write("Loader Upgrade: The current architecture (%s) is not supported for upgrade.\n" % arch)
|
||||
|
||||
if klass:
|
||||
klass().main()
|
||||
|
||||
Reference in New Issue
Block a user