Bugzilla – Bug 845 |
Traceback when using try/except error reporting. |
Last modified: 2014-07-08 06:57:38 CDT |
⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
Traceback when using try/except error reporting. |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
Created attachment 174 The error that I get in Fiji The following code gives a traceback error. Something about the try/except statement causes it to fail. from ij import IJ, WindowManager import os, re, errno # Set up directories. dirBase = "/media/Zn/Dan/Work/Projects/20140705_Progression" dirRaw = "01_Raw/s1" dirAnl = "02_Anl/s1" dirMnt = "02_Anl/" dirRawIn = os.path.join(dirBase, dirRaw) dirAnlOut = os.path.join(dirBase, dirAnl) dirMntOut = os.path.join(dirBase, dirMnt) def mkdir_p(path): print path try: os.makedirs(path) except OSError: print "Error catch stuff here" mkdir_p(dirAnlOut) mkdir_p(dirMntOut) ########## I pasted the error I get as an attachment.