graphing_modules['svg'] = pygal_naarad can be in try block. No need for else.