mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
8 lines
No EOL
191 B
Python
8 lines
No EOL
191 B
Python
from django.http import Http404
|
|
|
|
|
|
def get_argument_or_404(request, param, method='REQUEST'):
|
|
try:
|
|
return getattr(request, method)[param]
|
|
except KeyError:
|
|
raise Http404 |