[gedit-plugins] [commander] Catch general exception for monitoring
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] [commander] Catch general exception for monitoring
- Date: Sun, 13 Jul 2014 11:49:22 +0000 (UTC)
commit 9bd7e8970fe877ffe70ce275686784b0c4552721
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sun Jul 13 13:13:28 2014 +0200
[commander] Catch general exception for monitoring
plugins/commander/commander/commands/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/commander/commander/commands/__init__.py
b/plugins/commander/commander/commands/__init__.py
index 86f1250..4390b90 100644
--- a/plugins/commander/commander/commands/__init__.py
+++ b/plugins/commander/commander/commands/__init__.py
@@ -192,7 +192,7 @@ class Commands(Singleton):
try:
monitor = gfile.monitor_directory(Gio.FileMonitorFlags.NONE, None)
- except Gio.Error as e:
+ except Exception as e:
# Could not create monitor, this happens on systems where file monitoring is
# not supported, but we don't really care
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]