Skip to content

Commit b7de0e4

Browse files
committed
Merge branch 'master' into stage
2 parents 02bb019 + c4aa5e7 commit b7de0e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

django/gsmap/admin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,14 @@ def save_model(self, request, obj, form, change):
105105
try:
106106
obj.save()
107107
except (requests.exceptions.ReadTimeout, requests.exceptions.ConnectionError) as e:
108-
print(repr(e))
109108
messages.error(
110109
request,
111-
"Couldn't create the screenshots, screenshot server problem. (ReadTimeout, ConnectionError)"
110+
f"Couldn't create the screenshots, screenshot server problem. (ReadTimeout, ConnectionError) {repr(e)}"
112111
)
113112
except Exception as e:
114-
print(repr(e))
115113
messages.error(
116114
request,
117-
"Couldn't create the screenshots, screenshot server problem. (Other Error)"
115+
f"Couldn't create the screenshots, screenshot server problem. (Other Error) {repr(e)}"
118116
)
119117

120118

0 commit comments

Comments
 (0)