Projects
home:Eustace:branches:Eulaceura:Factory
system-config-printer
_service:obs_scm:Use-ValueError-instead-of-Impo...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:Use-ValueError-instead-of-ImportError-to-catch-excep.patch of Package system-config-printer
From 96e1f5b242f4be5b20d408e6f526caaaecf34a48 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville <bigon@bigon.be> Date: Mon, 26 Feb 2018 11:17:22 +0100 Subject: [PATCH] Use ValueError instead of ImportError to catch exception when importing GIR bindings When importing specific version of GIR bindings, the ValueError exception is raised instead of ImportError. This should make libsecret optional as intended Fixes: #94 --- jobviewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobviewer.py b/jobviewer.py index 6d9309ff..16b20300 100644 --- a/jobviewer.py +++ b/jobviewer.py @@ -57,7 +57,7 @@ try: gi.require_version('Secret', '1') from gi.repository import Secret USE_SECRET=True -except ImportError: +except ValueError: USE_SECRET=False import gettext -- 2.25.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2