Skip to content

Commit

Permalink
Fix an 'assert' statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
genglert committed Jan 2, 2025
1 parent 7e775a7 commit 53822d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions creme/billing/views/export.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################################################################################
# Creme is a free/open-source Customer Relationship Management software
# Copyright (C) 2009-2021 Hybird
# Copyright (C) 2009-2025 Hybird
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand Down Expand Up @@ -107,6 +107,6 @@ def get(self, request, *args, **kwargs):
if isinstance(export_result, HttpResponse):
return export_result

assert export_result, FileRef
assert isinstance(export_result, FileRef)

return HttpResponseRedirect(export_result.get_download_absolute_url())

0 comments on commit 53822d8

Please sign in to comment.