ChaterJee 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ChaterJee/ChaterJee.py CHANGED
@@ -313,9 +313,14 @@ class NoteLogs:
313
313
  self.save_job_JSON()
314
314
 
315
315
  def save_job_JSON(self):
316
- jobs_file = self.home / ".data" / "JOB_status.json"
317
- with open(jobs_file, 'r') as ffr:
318
- jobs = json.load(ffr)
316
+ _data = self.home / ".data"
317
+ _data.mkdir(exist_ok=True)
318
+ jobs_file = _data / "JOB_status.json"
319
+ try:
320
+ with open(jobs_file, 'r') as ffr:
321
+ jobs = json.load(ffr)
322
+ except FileNotFoundError:
323
+ jobs = {}
319
324
  jobs[self.jobNAME] = {\
320
325
  "logDIR": self.logDIR, \
321
326
  "logFILE": self.logFILE, \
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -0,0 +1,6 @@
1
+ ChaterJee/ChaterJee.py,sha256=7BeNSvlnGC3cRXMSqXsJmroMZyLkiYiZuuGa1BfBYAE,12878
2
+ ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
3
+ chaterjee-0.2.1.dist-info/METADATA,sha256=BLPLAlvdDMZuS17DnY-nEOZDzsHMLRHfVnzP5oo2YS0,340
4
+ chaterjee-0.2.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
5
+ chaterjee-0.2.1.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
6
+ chaterjee-0.2.1.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- ChaterJee/ChaterJee.py,sha256=92ao2kjhi2aG7whJ8G9M2NqH9OTfMH_FzVoxHz1BD1Q,12744
2
- ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
3
- chaterjee-0.2.0.dist-info/METADATA,sha256=dCbblGHGsdVmsKU8LluqL_7mwwQmMPGwg1rVOcMkti0,340
4
- chaterjee-0.2.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
5
- chaterjee-0.2.0.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
6
- chaterjee-0.2.0.dist-info/RECORD,,