Advertisement
Guest User

Untitled

a guest
Nov 16th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. if self.asvar is None:
  2. # Re-raise the original exception, not the one with
  3. # the path relative to the project. This makes a
  4. # better error message.
  5. raise e
  6. else:
  7. if self.asvar is None:
  8. raise e
  9.  
  10. if self.asvar:
  11. context[self.asvar] = url
  12. return ''
  13. else:
  14. return url
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement