[kupfer] icons: Simplify error handling



commit ccbce7f82e2f47c2cb30d71288876dd8f5a95c50
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Sep 14 15:01:05 2009 +0200

    icons: Simplify error handling
    
    Since load_kupfer_icons is working in a callback, we simply let any
    ResourceLookupError through, it will not disrupt the rest of the
    program.

 kupfer/icons.py |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/icons.py b/kupfer/icons.py
index 381c138..7f368ce 100644
--- a/kupfer/icons.py
+++ b/kupfer/icons.py
@@ -23,9 +23,6 @@ def load_kupfer_icons(sched=None):
 	"""Load in kupfer icons from installed files"""
 	ilist = "art/icon-list"
 	ilist_file_path = config.get_data_file(ilist)
-	if not ilist_file_path:
-		pretty.print_info(__name__, "Datafile %s not found" % ilist)
-		return
 	# parse icon list file
 	ifile = open(ilist_file_path, "r")
 	for line in ifile:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]