58f15c414096980a60270826c322ac1c828c7168
wong
  Sat Nov 26 23:30:57 2011 -0800
corrected an incorrect exception, should be KeyError, FileError is not defined
diff --git python/lib/ucscgenomics/track.py python/lib/ucscgenomics/track.py
index c3c9ba7..901b8b0 100644
--- python/lib/ucscgenomics/track.py
+++ python/lib/ucscgenomics/track.py
@@ -47,31 +47,31 @@
         """The filetype"""
         return self._extension
         
     @property 
     def size(self):
         """The size in bytes"""
         return self._size
         
     @property 
     def metaObject(self):
         """The size in bytes"""
         return self._metaObj
     
     def __init__(self, fullname, md5, metaObj=None):
         if not os.path.isfile(fullname):
-            raise FileError('invalid file: %s' % fullname)
+            raise KeyError('invalid file: %s' % fullname)
         self._path, self._name = fullname.rsplit('/', 1)
         self._path = self._path + '/'
         self._fullname = fullname
         self._size = os.stat(fullname).st_size
         self._md5sum = md5
         self._metaObj = metaObj
         
         self._extension = self._name
         self._extension.replace('.gz', '').replace('.tgz', '')
         if '.' in self._extension:
             self._extension = self._extension.rsplit('.')[1]
         else:
             self._extension = None