sehmaschine/django-filebrowser — Issue #82: Management command fail in 3.4.0
Author: msamoylov
Created: 2012-03-05 12:41:13+00:00
State: open

(.env)mike@pns:/var/www/pns$ ./manage.py fb_version_generate

Select a version you want to generate:
* medium
* big
* large
* admin_thumbnail
* small
* thumbnail
(leave blank to generate all versions):
generating all versions for: /var/www/pns/media/uploads/11111.jpg
Traceback (most recent call last):
File "./manage.py", line 11, in
execute_manager(settings)
File "/var/www/pns/.env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/var/www/pns/.env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/pns/.env/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/var/www/pns/.env/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/var/www/pns/.env/local/lib/python2.7/site-packages/filebrowser/management/commands/fb_version_generate.py", line 75, in handle
self.createVersions(os.path.join(dirpath, filename), selected_version)
File "/var/www/pns/.env/local/lib/python2.7/site-packages/filebrowser/management/commands/fb_version_generate.py", line 84, in createVersions
version_generator(path, version, True)
File "/var/www/pns/.env/local/lib/python2.7/site-packages/filebrowser/functions.py", line 315, in version_generator
f.close()
UnboundLocalError: local variable 'f' referenced before assignment