Skip to content

Commit

Permalink
Showing metadata in LFE file view Now fails more intelligently on unf…
Browse files Browse the repository at this point in the history
…ound files.
  • Loading branch information
lethain committed Jul 10, 2008
1 parent 2c1b70e commit 844a3d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/views.py
Expand Up @@ -340,6 +340,8 @@ def display_resource(request, id):
opts['type'] = "code"
except ClassNotFound:
opts['type'] = "file"
except IOError:
opts['type'] = "file"

return render_to_response('lifeflow/editor/resource.html',opts,RequestContext(request, {}))

Expand Down

0 comments on commit 844a3d6

Please sign in to comment.