Haha, silly me. I see what you are doing. I would just do this:

```
try:
    return "/admin/themes/%(theme_id)s/" % options
except KeyError:
    return "/admin/"
````