[tracker] util/sandbox: Avoid misleading error message
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] util/sandbox: Avoid misleading error message
- Date: Wed, 7 Aug 2019 09:58:02 +0000 (UTC)
commit 38c2a4e226c6e71d924386b2c295a861d992359f
Author: Sam Thursfield <sam afuera me uk>
Date: Fri Aug 2 12:58:34 2019 +0200
util/sandbox: Avoid misleading error message
This error message no longer shows during normal operation:
Unexpected error: No such file or directory /home/sam/tracker-temp/run/dbus-session
utils/sandbox/tracker-sandbox.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/utils/sandbox/tracker-sandbox.py b/utils/sandbox/tracker-sandbox.py
index b3b9280fb..06bc6afb0 100755
--- a/utils/sandbox/tracker-sandbox.py
+++ b/utils/sandbox/tracker-sandbox.py
@@ -276,9 +276,7 @@ def dbus_session_file_get():
with open(dbus_session_file, 'r') as f:
content = f.read()
return dbus_session_get_from_content(content)
- except (IOError, OSError) as e:
- print("Unexpected error: %s %s" % (e.strerror, e.filename),
- file=sys.stderr)
+ except FileNotFoundError as e:
# Expect this if we have a new session to set up
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]