Skip to content

Commit 9b4902c

Browse files
authored
Merge pull request #25 from fossology/fix/exceptions
Fix/exceptions
2 parents 4897a3d + a75b960 commit 9b4902c

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

docs-source/conf.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
# -- Project information -----------------------------------------------------
2121

2222
project = "fossology"
23-
copyright = "2019, Siemens AG"
23+
copyright = "2020, Siemens AG"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "0.0.7"
26+
release = "0.1.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------
@@ -49,3 +49,13 @@
4949
# a list of builtin themes.
5050
#
5151
html_theme = "alabaster"
52+
html_theme_options = {
53+
"github_user": "fossology",
54+
"github_repo": "fossology-python",
55+
"github_button": True,
56+
"fixed_sidebar": True,
57+
"extra_nav_links": {
58+
"Package on PyPi": "https://pypi.org/project/fossology/",
59+
"Source on Github": "http://github.com/fossology/fossology-python/",
60+
},
61+
}

docs-source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Welcome to fossology's documentation!
66
.. toctree::
77
:maxdepth: 2
88
:hidden:
9-
:caption: Contents:
109

1110
fossology
1211
folders

fossology/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self, description, response):
2828
try:
2929
message = response.json().get("message")
3030
except JSONDecodeError:
31-
message = ""
31+
message = response.text
3232
self.message = f"{description}: {message} ({response.status_code})"
3333

3434

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

0 commit comments

Comments
 (0)