Christian Clauss
e0751b2a3a
Exception.message was deprecated in Python 2.6 and removed in Python 3
2021-08-14 19:33:23 +02:00
Christian Clauss
dc604ac442
Exception.message was deprecated in Python 2.6 and removed in Python 3
...
`BaseException.message` was deprecated as of Python 2.6 and is removed in Python 3. Use `str(e)` to access the user-readable message. Use `e.args` to access arguments passed to the exception.
$ `python3`
```
>>> dir(Exception('Hey'))
['__cause__', '__class__', '__context__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', '__subclasshook__', '__suppress_context__', '__traceback__', 'args', 'with_traceback']
>>> try:
... blah
... except Exception as e:
... print(e)
... print(e.args)
... print(e.message) # Will cause a second Exception
...
name 'blah' is not defined
("name 'blah' is not defined",)
Traceback (most recent call last):
File "<string>", line 2, in <module>
NameError: name 'blah' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 6, in <module>
AttributeError: 'NameError' object has no attribute 'message'
```
2021-08-14 18:53:56 +02:00
jeremystretch
3feba2997f
Closes #6872 : Add table configuration button to child prefixes view
2021-08-13 15:56:14 -04:00
jeremystretch
fce419526d
Closes #6748 : Add site group filter to devices list
2021-08-13 15:26:06 -04:00
jeremystretch
1b12185a39
PRVB
2021-08-12 11:47:59 -04:00
Jeremy Stretch
2e895c734e
Merge pull request #6947 from netbox-community/develop
...
Release v2.11.11
2021-08-12 11:44:51 -04:00
Jeremy Stretch
11a9dc57fc
Merge branch 'master' into develop
2021-08-12 11:31:29 -04:00
jeremystretch
badd92a50e
Update GitHub issue templates
2021-08-12 11:28:55 -04:00
jeremystretch
b2faf8044d
Release v2.11.11
2021-08-12 11:22:57 -04:00
jeremystretch
3105e9545a
Fixes #6918 : Fix return URL persistence when adding multiple objects sequentially
2021-08-12 10:12:42 -04:00
jeremystretch
42c71984f9
Fixes #6896 : Fix validation of IP address assigned as device/VM primary via NAT relation
2021-08-11 21:15:45 -04:00
jeremystretch
db359719a9
Closes #6921 : Employ a sandbox when rendering Jinja2 code for increased security
2021-08-10 20:52:45 -04:00
jeremystretch
7bceeb714b
Fixes #6935 : Remove extraneous columns from inventory item and device bay tables
2021-08-10 20:35:39 -04:00
jeremystretch
35b8fc6e83
Fixes #6936 : Add missing parent column to inventory item import form
2021-08-10 20:24:57 -04:00
jeremystretch
1bb596fc7e
Fixes #6908 : Allow assignment of scope to VLAN groups upon import
2021-08-09 09:54:27 -04:00
jeremystretch
7bcebd5b0f
Fixes #6910 : Fix exception on invalid CSV import column name
2021-08-09 09:20:22 -04:00
jeremystretch
a8b6902829
Fixes #6909 : Remove extraneous site column from VLAN group import form
2021-08-09 09:17:08 -04:00
Jeremy Stretch
71e6dc8275
Merge pull request #6920 from candlerb/candlerb/6919
...
Change example ADMINS to show a tuple
2021-08-09 08:56:44 -04:00
Jeremy Stretch
564640213e
Merge pull request #6915 from candlerb/candlerb/libpq-dev
...
Documentation consistency on installation of libpq-dev(el)
2021-08-09 08:51:54 -04:00
Brian Candler
b04f262642
Change example ADMINS to show a tuple
...
Fixes #6919
2021-08-09 07:37:46 +01:00
Brian Candler
b802127801
Documentation consistency on installation of libpq-dev(el)
2021-08-08 10:19:30 +01:00
jeremystretch
f23dc2d405
Fixes #6902 : Populate device field when cloning device components
2021-08-06 09:55:47 -04:00
jeremystretch
7c8612aadd
Update application architecture diagram
2021-08-05 15:51:24 -04:00
Joel McGuire
d347b97f20
Fixes #6887 Add Examples in the Lookup Expression Docs ( #6898 )
...
Fixes #6887 Add Examples in the Lookup Expression Docs
Co-authored-by: joel <joelmcguire@email.arizona.edu>
2021-08-05 13:28:32 -04:00
jeremystretch
46d0af6cef
Fixes #6892 : Fix validation of unit ranges when creating a rack reservation
2021-08-05 11:12:08 -04:00
jeremystretch
ee8fd701ae
Changelog for #6883
2021-08-04 13:26:53 -04:00
Jeremy Stretch
9379324b07
Merge pull request #6885 from bellwood/6883_add_power_outlet_port_c21_c22
...
Add power outlet/port choice for C21/C22
2021-08-04 12:59:21 -04:00
Brian Ellwood
55cdbd57cc
Add power outlet/port choice for C21/C22
...
Resolves #6883
2021-08-04 12:06:39 -04:00
jeremystretch
76df55dfc0
Fixes #6740 : Add import button to VM interfaces list
2021-07-30 10:28:56 -04:00
Jeremy Stretch
49a949aa97
Merge pull request #6836 from Ursadon/patch-1
...
Escaping angle brackets in a device config file
2021-07-30 10:09:04 -04:00
jeremystretch
288bf477ce
Bump GitHub stale action to v4.0
2021-07-29 09:07:23 -04:00
Ursadon
27f3816fc6
Escaping angle brackets in a device config file
...
The configuration file may contain brackets (">" or "<"), which must be escaped
2021-07-29 15:45:32 +07:00
jeremystretch
18a4232783
PRVB
2021-07-28 16:00:38 -04:00
Jeremy Stretch
15ed575207
Merge pull request #6830 from netbox-community/develop
...
Release v2.11.10
2021-07-28 15:56:23 -04:00
jeremystretch
eae4502708
Release v2.11.10
2021-07-28 15:17:45 -04:00
jeremystretch
78ebf04be0
Shrink NetBox logo on docs main page
2021-07-28 15:12:17 -04:00
jeremystretch
49a596073e
Tweak GitHub repo icon & name in docs
2021-07-28 15:07:46 -04:00
jeremystretch
95783cc128
Closes #6644 : Add 6P/4P pass-through port types
2021-07-28 11:54:25 -04:00
jeremystretch
8d9d3a9e7d
Changelog and cleanup for #6560
2021-07-28 11:44:13 -04:00
Jeremy Stretch
ea0de4b01d
Merge pull request #6561 from abigley/csv_feature
...
CSV file import
2021-07-28 10:48:30 -04:00
jeremystretch
72aaf76cf4
Closes #6702 : Update reference nginx config to support IPv6
2021-07-28 10:31:59 -04:00
jeremystretch
78e282d406
Fixes #6771 : Add count of inventory items to manufacturer view
2021-07-28 10:25:52 -04:00
jeremystretch
0c214932ba
Fixes #6812 : Limit reported prefix utilization to 100%
2021-07-28 09:55:40 -04:00
jeremystretch
a1eb4dc807
Fixes #5627 : Fix filtering of interface connections list
2021-07-27 16:21:56 -04:00
jeremystretch
e92f13977c
Changelog for #6785
2021-07-27 16:17:59 -04:00
Jeremy Stretch
5db283700f
Merge pull request #6789 from bellwood/patch-1
...
Add AC Hardwire option to PowerPortTypeChoices
2021-07-27 16:14:01 -04:00
Jeremy Stretch
6e79e5608e
Merge pull request #6810 from tamaszl/patch-1
...
Update 6-ldap.md - AUTH_LDAP_USER_DN_TEMPLATE to none for windows 2012+
2021-07-27 16:12:36 -04:00
jeremystretch
8355270a1a
Fixes #6822 : Use consistent maximum value for interface MTU
2021-07-27 16:04:51 -04:00
Brian Ellwood
1c38d63c50
Update choices.py
2021-07-26 15:03:43 -04:00
bluikko
4f6944424b
Add dev server firewall configuration for EL distros ( #6772 )
...
* Add dev server firewall configuration for EL distros
* Fix typo in previous
* Indent the firewall block in install docs
2021-07-26 13:26:46 -04:00