noseka1 / linuxband

GUI front-end for MMA (Musical MIDI Accompaniment)
linuxband.org
GNU General Public License v2.0
26 stars 15 forks source link

python exception on first run #15

Open bill-auger opened 6 years ago

bill-auger commented 6 years ago

exception thrown here --> https://github.com/noseka1/linuxband/blob/master/src/main/python/linuxband/mma/grooves.py#L148

does this really need to be an exception? especially on first run - the very next thing the script does is to create the cache --> https://github.com/noseka1/linuxband/blob/master/src/main/python/linuxband/mma/grooves.py#L40; and the '__load_grooves_from_cache()' method is called only in that one place

ERROR __load_grooves_from_cache Unable to load grooves from cache 
'/home/bill/.linuxband/grooves.cache'
Traceback (most recent call last):
  File "/usr/share/linuxband/linuxband/mma/grooves.py", line 143, in __load_grooves_from_cache
    infile = file(fname, 'r')
IOError: [Errno 2] No such file or directory: '/home/bill/.linuxband/grooves.cache'
04:22:25 INFO __cache_grooves Stored 0 groove patterns in cache 
'/home/bill/.linuxband/grooves.cache'