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.

Bug 845 - Traceback when using try/except error reporting.
Traceback when using try/except error reporting.
Status: NEW
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
PC Linux
: P5 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2014-07-08 06:57 CDT by jdanielfenn+fijiBugZilla
Modified: 2014-07-08 06:57 CDT
0 users

See Also:


Attachments
The error that I get in Fiji (6.79 KB, text/plain)
2014-07-08 06:57 CDT, jdanielfenn+fijiBugZilla

Description jdanielfenn+fijiBugZilla 2014-07-08 06:57:38 CDT
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.