hellais / Buckle-Up

Script for running Mac OS X applications in a sandbox and a collection of seatbelt profiles
90 stars 9 forks source link

Unable to list sandbox profiles #2

Closed mr-sk closed 12 years ago

mr-sk commented 12 years ago

I get the following error when I attempt to list sandbox profiles

ironcross:Buckle-Up sk$ ./buckleup.py -l [-] Listing Buckle Up sandbox profiles... Traceback (most recent call last): File "./buckleup.py", line 220, in b = BuckleUp() File "./buckleup.py", line 30, in init self.argument_parser() File "./buckleup.py", line 204, in argument_parser self.list() File "./buckleup.py", line 145, in list for sb in self.sb_list(): File "./buckleup.py", line 137, in sb_list sb = self.parse_sb(file) File "./buckleup.py", line 62, in parse_sb f.close() UnboundLocalError: local variable 'f' referenced before assignment

ironcross:Buckle-Up sk$ tree . ├── Readme.md ├── buckleup.py └── profiles ├── Tweetdeck-profile.sb ├── VLC-profile.sb ├── Ventrilo-profile.sb ├── adium.sb ├── firefox-profile-10.5.sb ├── firefox-profile-10.7.sb ├── firefox-profile.sb ├── firefox.sb ├── template.sb └── vienna.sb

hellais commented 12 years ago

yeah sorry about that, I moved the files to a subfolder and didn't update the code. Should now be fixed.

mr-sk commented 12 years ago

Works, thanks!