Skip to content

Commit

Permalink
Merge pull request #25 from fossology/fix/exceptions
Browse files Browse the repository at this point in the history
Fix/exceptions
  • Loading branch information
deveaud-m authored May 6, 2020
2 parents 4897a3d + a75b960 commit 9b4902c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
14 changes: 12 additions & 2 deletions docs-source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
# -- Project information -----------------------------------------------------

project = "fossology"
copyright = "2019, Siemens AG"
copyright = "2020, Siemens AG"

# The full version, including alpha/beta/rc tags
release = "0.0.7"
release = "0.1.0"


# -- General configuration ---------------------------------------------------
Expand All @@ -49,3 +49,13 @@
# a list of builtin themes.
#
html_theme = "alabaster"
html_theme_options = {
"github_user": "fossology",
"github_repo": "fossology-python",
"github_button": True,
"fixed_sidebar": True,
"extra_nav_links": {
"Package on PyPi": "https://pypi.org/project/fossology/",
"Source on Github": "http://github.com/fossology/fossology-python/",
},
}
1 change: 0 additions & 1 deletion docs-source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Welcome to fossology's documentation!
.. toctree::
:maxdepth: 2
:hidden:
:caption: Contents:

fossology
folders
Expand Down
4 changes: 2 additions & 2 deletions fossology/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, description, response):
try:
message = response.json().get("message")
except JSONDecodeError:
message = ""
message = response.text
self.message = f"{description}: {message} ({response.status_code})"


Expand All @@ -39,5 +39,5 @@ def __init__(self, description, response):
try:
message = response.json().get("message")
except JSONDecodeError:
message = ""
message = response.text
self.message = f"{description}: {message} ({response.status_code})"

0 comments on commit 9b4902c

Please sign in to comment.