Commit Graph

103 Commits

Author SHA1 Message Date
f6be2e1d84 gear-remotes-save 2024-10-17 15:19:29 +03:00
Delgan
f7f1476e57
Use stream encoding instead of locale preferred encoding (#88)
* Use stream encoding instead of locale preferred encoding

* Use 'utf-8' by default for stream with unknown encoding
2023-01-05 01:12:47 +01:00
Newman
3b6c15699b
set license in setup.py file (#125)
ref: #124
2022-12-02 11:45:02 +01:00
Kian-Meng Ang
922c24030e
fix typos and markdowns (#123)
Found via these commands:

    codespell .
    markdownlint README.md --disable MD013 MD025

See a detailed description of the rules is available at
https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
2022-08-12 13:51:31 +02:00
Qix
f7f09a3017
Create FUNDING.yml 2021-10-19 03:43:50 +02:00
Gábor Lipták
70e282d778
bring Python current in Travis (#116) 2021-08-24 18:15:42 +02:00
Josh Junon
4e150ba342 0.3.3 2021-01-29 17:48:11 +01:00
Sumanth Ratna
a8d24876f5
update Django integration docs (#113)
* Create better_exceptions.integrations.django.skip_errors_filter

* Update docs
2021-01-02 13:26:40 +01:00
Josh Junon
c094fa5202 0.3.2 2020-12-24 09:33:16 +01:00
Josh Junon
97c0b200df include django integrations in setup.py package list 2020-12-24 09:32:49 +01:00
Josh Junon
cd89b86cd6 0.3.1 2020-12-23 04:41:22 +01:00
Sumanth Ratna
e2a0094e18 Create __init__.py in integrations module 2020-12-23 04:40:11 +01:00
Josh Junon
ace4ed9cef 0.2.0 2020-12-23 02:21:05 +01:00
Josh Junon
194d95a5f0 remove python2 support from tests 2020-12-23 02:20:19 +01:00
Sumanth Ratna
76a4cc9dcf
add Django middleware (#109)
* Create Django middleware

* Update README.md
2020-12-23 02:12:41 +01:00
Josh Junon
1523d6f7fa 0.2.3 2020-12-23 01:46:14 +01:00
Sumanth Ratna
249bc245b9 Only run ps -ww -p $PID -o command= if available 2020-12-21 01:40:49 +01:00
ocavue
7b41752775 Add unittest patch (#77) 2019-09-28 17:41:45 +02:00
Riley Shaw
4dab3e218a fix closing single quote regex class for comment pattern (#89)
* fix COMMENT_REGXP

i noticed a couple of bugs in the regular expression while testing.

the first bug is found when a line doesn't have a comment but has `#` in a string. the matcher seems to forcefully fetch the `#` from inside of the string. [proof](https://regex101.com/r/tUCeTa/1). to fix this i have made the comment optional.

the second bug was introduced because a `"` was put where a `'` should have been. this causes a `'` delimited string containing a `"` to be matched incorrectly. [proof](https://regex101.com/r/qlunxG/1). to fix this i have replaced the `"` with `\'`

* exclude optional comment
2019-06-17 18:08:41 +02:00
Qix
008c17fcd7
Merge pull request #79 from dansan/master
fix Python 2 import (fix #78)
2019-05-08 09:41:17 +02:00
Daniel Troeder
cadd8e6834 fix Python 2 import (fix #78) 2019-05-07 23:12:13 +02:00
Qix
b455cffb53
Merge pull request #86 from blueyed/format_value
format_value: catch BaseException
2019-05-07 21:18:41 +02:00
Daniel Hahler
02b0b51dcf format_value: catch BaseException
Ref: https://github.com/Qix-/better-exceptions/issues/85#issuecomment-489930136
2019-05-07 15:33:33 +02:00
Matt
1c82a8f8e5 Adds Django setup info for README, fixes #22 (#83) 2019-04-29 04:51:38 +02:00
Delgan
f10e1fb154
Align "format_traceback" output with built-in function (#64) 2019-01-10 23:51:03 +01:00
Delgan
c170bf65a6
Surround repr() with try / except in case object is unprintable (#65) 2019-01-10 23:50:48 +01:00
Josh Junon
d5f56d8136 0.2.2 2019-01-10 15:17:39 +01:00
Delgan
04f7e97206
Add support for chained exceptions (#63) 2019-01-08 22:09:32 +01:00
Delgan
4d6a9daf6a
Fix unit tests failing on Python 3.7 (#62) 2019-01-07 20:59:59 +01:00
Josh Junon
0b13582973 0.2.1 2018-01-16 16:19:52 +01:00
Josh Junon
e8b38aae4b remove incorrect note about not working in interactive shell 2018-01-16 16:19:28 +01:00
Josh Junon
62a1690097 0.2.0 2018-01-16 16:17:20 +01:00
Josh Junon
9322966176 add note about interactive shells 2018-01-16 16:14:39 +01:00
Delgan
a257cbb0c1 Remove outdated module docstring 2017-10-19 12:28:24 +02:00
Delgan
3c5870cf0d Add tests for IndentationError and SyntaxError 2017-10-19 12:01:29 +02:00
paradoxxxzero
ab227a9d96 Fix SyntaxError missing exception part 2017-10-19 12:01:29 +02:00
Delgan
f926bcccc2 Add automatic hook based on an environment variable 2017-10-19 12:01:29 +02:00
Delgan
c9c2ce9d9c Add a way to use better_exceptions functions without side effects
Importing 'better_exceptions' automatically replaces the default sys.excepthook and
add an handler to the root logger.
This is very useful in most cases, but sometimes the user may want to use library
functions without any side effects.

Two packages can be published: the first contains all the functions of the library,
and the second uses these functions to automatically set up the better exception system.
The user can choose the package he wants to import, and there is no code repetition
in the repository

The core functions had to be encapsulated into a class so that user can still modify
global parameters to his convenience.
2017-09-13 09:06:45 +02:00
Delgan
35eaebff0b Fix raw codes appearing with Python 3 on Windows cmd
Colorama does not wrap the 'buffer' attributes of streams, so writing
to it would not convert ANSI codes on Windows.
The workaround is to use '.write()' without encoding the string,
and rather wrap the stream used by Colorama to encode substrings
which are sent once win32 call are made.
2017-09-11 09:59:20 +02:00
Delgan
9bd28c8b79 Add tests to check correctly truncated values 2017-09-10 22:27:51 +02:00
Delgan
712c2dbdfc Add __version__ to top level module 2017-09-10 22:25:43 +02:00
Delgan
f9e1dddc27 Fix uncaught error on some exotic environments 2017-09-10 22:25:01 +02:00
TaoBeier
821b9e4555 fix indentation and change nodes iterable 2017-09-10 22:11:09 +02:00
Josh Junon
8b020dde69 0.1.8 2017-05-12 00:12:44 -07:00
Josh Junon
a6b49d021f run PYTHONSTARTUP in better-exceptions REPL 2017-05-12 00:09:34 -07:00
Kevin Woldt
4ab6076c3e using relative imports to support sub packaging (#30) 2017-05-03 12:52:37 -07:00
Josh Junon
e1cf1ff35e 0.1.7 2017-04-24 15:51:36 -07:00
Josh Junon
d807d03afc use new PY3 variable instead of system check 2017-04-24 15:51:18 -07:00
cold
cd378ffe7d Fix Non-ASCII exceptions UnicodeDecodeError (#33)
* Fix Non-ASCII exceptions UnicodeDecodeError

Fix some code includes Non-ASCII characters will cause `UnicodeDecodeError`

* Add test encoding & regenerate test data
2017-04-24 15:48:26 -07:00
Josh Junon
74eb5373aa 0.1.6 2017-03-28 14:48:13 -07:00