File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change
1
+ v0.7.2 (in development)
2
+ -----------------------
3
+ - Fix crash when ` $MAIL ` is set but file is empty
4
+
1
5
v0.7.1 (2024-05-23)
2
6
-------------------
3
7
- Fixed support for custom venv prompt prefixes
Original file line number Diff line number Diff line change 19
19
Visit <https://github.com/jwodder/ps1.py> for more information.
20
20
"""
21
21
22
- __version__ = "0.7.1 "
22
+ __version__ = "0.7.2.dev1 "
23
23
__author__ = "John Thorvald Wodder II"
24
24
__author_email__ = "ps1@varonathe.org"
25
25
__license__ = "MIT"
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ class PromptInfo:
42
42
@classmethod
43
43
def get (cls , git : bool = True , git_timeout : float = 3 ) -> PromptInfo :
44
44
try :
45
- if os .stat (os .environ ["MAIL" ]).st_size > 0 :
46
- mail = True
45
+ mail = os .stat (os .environ ["MAIL" ]).st_size > 0
47
46
except (KeyError , FileNotFoundError ):
48
47
mail = False
49
48
You can’t perform that action at this time.
0 commit comments