Fex

Check-in [2151e8f124]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:error handling
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2151e8f12438a3ce6982f3de8759a3b5e938a871e50a2821868ab90446de1c95
User & Date: jesse@mccluresk9.com 2014-02-26 17:50:58
Context
2014-02-26
23:28
downmix to mono for multichannel input check-in: ef57d6c8cd user: jesse@mccluresk9.com tags: trunk
17:50
error handling check-in: 2151e8f124 user: jesse@mccluresk9.com tags: trunk
16:53
removed empty todo check-in: 0ea72b98a8 user: jesse@mccluresk9.com tags: trunk
Changes

Changes to src/fex-gtk.

33
34
35
36
37
38
39

40



41
42
43
44
45
46
47
	else:
		filelist = argv
	if (len(filelist) == 0):
		sys.exit(0)
	data = "Song\tFEX\n"
	for filename in filelist:
		song = os.path.splitext(os.path.basename(filename))[0]

		data = data + song + "\t" + subprocess.check_output(["fex",filename])



	if (len(filelist) == 1):
		filename = ""
	else:
		filename = data_file()
	if (len(filename) == 0):
		label = gtk.Label(data)
		win = gtk.Dialog("Fex", None,







>
|
>
>
>







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
	else:
		filelist = argv
	if (len(filelist) == 0):
		sys.exit(0)
	data = "Song\tFEX\n"
	for filename in filelist:
		song = os.path.splitext(os.path.basename(filename))[0]
		try:
			FE = subprocess.check_output(["fex",filename])
		except subprocess.CalledProcessError as err:
			FE = "NA\n"
		data = data + song + "\t" + FE
	if (len(filelist) == 1):
		filename = ""
	else:
		filename = data_file()
	if (len(filename) == 0):
		label = gtk.Label(data)
		win = gtk.Dialog("Fex", None,