MegaMark16 / django-cms-themes

A way to quickly load and swap out template packs (or themes) for Django CMS
BSD 3-Clause "New" or "Revised" License
49 stars 15 forks source link

Does not work under python 2.5 #4

Closed PaoloC68 closed 12 years ago

PaoloC68 commented 12 years ago

When running on python 2.5 throws the following syntax error

except Exception as ex:
                  ^
SyntaxError: invalid syntax

which can be easily fixed by replacing the as command with a comma:

so instead:

except Exception as ex:

use

except Exception, ex:

and will be fine.

reference http://www.gossamer-threads.com/lists/python/python/785327

MegaMark16 commented 12 years ago

Sorry for the delay, but I've made the change you suggested. Thanks!