tradedangerous 11.5.0__py3-none-any.whl → 11.5.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.

Potentially problematic release.


This version of tradedangerous might be problematic. Click here for more details.

@@ -1,3 +1,5 @@
1
+ import sqlite3
2
+
1
3
  from .exceptions import (
2
4
  CommandLineError, FleetCarrierError, OdysseyError,
3
5
  PadSizeError, PlanetaryError,
@@ -72,11 +74,13 @@ class CommandEnv(TradeEnv):
72
74
  self.tdb = tdb
73
75
  db_change = pathlib.Path(self.tdb.templatePath, 'database_changes.json')
74
76
  if pathlib.Path.exists(db_change):
75
- import ijson
76
- with open(db_change) as file:
77
- for change in ijson.items(file, 'item'):
78
- self.tdb.getDB().execute(change)
79
- db_change.unlink()
77
+ try:
78
+ import ijson
79
+ with open(db_change) as file:
80
+ for change in ijson.items(file, 'item'):
81
+ self.tdb.getDB().execute(change)
82
+ finally:
83
+ db_change.unlink()
80
84
 
81
85
  self.checkMFD()
82
86
  self.checkFromToNear()
tradedangerous/version.py CHANGED
@@ -12,5 +12,5 @@
12
12
  """just keeper of current version"""
13
13
 
14
14
  # TODO: remember to update tests when version changes
15
- __version__ = '11.5.0'
15
+ __version__ = '11.5.1'
16
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tradedangerous
3
- Version: 11.5.0
3
+ Version: 11.5.1
4
4
  Summary: Trade-Dangerous is a set of powerful trading tools for Elite Dangerous, organized around one of the most powerful trade run optimizers available.
5
5
  Home-page: https://github.com/eyeonus/Trade-Dangerous
6
6
  Author: eyeonus
@@ -21,12 +21,12 @@ tradedangerous/tradeenv.py,sha256=aIeK291Ene98kaEEu1LvlJ4KT4EvPfIXlT4IfZnpVc0,11
21
21
  tradedangerous/tradeexcept.py,sha256=aZ-Y31MbkjF7lmAzBAbaMsPPE7FEEfuf4gaX2GvriDk,368
22
22
  tradedangerous/transfers.py,sha256=t_0Sjr4FI9lhIPwyPOXdR8d97bE611ujbKK4ioWShm0,6024
23
23
  tradedangerous/utils.py,sha256=PUPvAEqUyxYGqqQa0b_yfLAvq8YVUxK6HfdS-CxM-Lo,5186
24
- tradedangerous/version.py,sha256=NMsHLdL8hA7iAFucNiKOx8yn15j7n8falWI0neiBfeI,646
24
+ tradedangerous/version.py,sha256=2l-1rl3V6vbIVm-7o42LmVsvK3wJUU0uWAuL58dbpHM,646
25
25
  tradedangerous/commands/TEMPLATE.py,sha256=MOE69xsZPHPIMBQ-LXicfsOlCZdy-2gPX_nlnwYYil8,2026
26
26
  tradedangerous/commands/__init__.py,sha256=3gz2cnXNZNkV1gtZh0dOnCRxBkQHbeIyysRe3bM2WEE,9516
27
27
  tradedangerous/commands/buildcache_cmd.py,sha256=jhNSqHX_xX43SiSUMFiKtWpB9v4oeZ0sqfNq6DCrjUs,2181
28
28
  tradedangerous/commands/buy_cmd.py,sha256=qgOBTzCvcYgLOcdkx7BpqF-rSs6GFjOL_f3Gzutmx1I,13947
29
- tradedangerous/commands/commandenv.py,sha256=kw1FDkxDvJMaui92gWYHv8bNWsxxn5xHXCjmHGFeGUM,9794
29
+ tradedangerous/commands/commandenv.py,sha256=72hEqaZzUBsTiYzkJrGP6Z1EN7WyvyZrKHxlRQNp--4,9868
30
30
  tradedangerous/commands/exceptions.py,sha256=sisGoBvOpt25TYWWjp-s-k_--O_nZe5Zd9HhAW3SElA,3487
31
31
  tradedangerous/commands/export_cmd.py,sha256=VfxwrNU_TzrSw71KrmtmXKYCBkpDGr5KRLGPXOBewnI,4405
32
32
  tradedangerous/commands/import_cmd.py,sha256=PKMrO1DhOGkqAn_q9vZBxhogpFL5MHp2JyYb4qiBdq0,5633
@@ -72,9 +72,9 @@ tradedangerous/templates/Category.csv,sha256=8xwUDcBZE25T6x6dZGlRUMTCqeDLt3a9LXU
72
72
  tradedangerous/templates/RareItem.csv,sha256=F1RhRnTD82PiwrVUO-ai2ErGH2PTqNnQaDw5mcgljXs,10483
73
73
  tradedangerous/templates/TradeDangerous.sql,sha256=XJ0T09OiS9UdYKJXXAG-rCe6T_ua4MU-icb2lD7iEz0,9342
74
74
  tradedangerous/templates/database_changes.json,sha256=-KszgXhUUhwI7FRPDxnkV3bv9paXGpTgnUZxZN7i5OA,371
75
- tradedangerous-11.5.0.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
76
- tradedangerous-11.5.0.dist-info/METADATA,sha256=qRJG-26PAjw7DiDR3HhJaGC0sj0bzvLGpuO1B5q8MLk,4435
77
- tradedangerous-11.5.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
78
- tradedangerous-11.5.0.dist-info/entry_points.txt,sha256=lrA7U9JHOcNuam2WEK4Hmc3vQ3mrJfsbJCE74qd9au8,62
79
- tradedangerous-11.5.0.dist-info/top_level.txt,sha256=JEoOVAhg5GfXZ4kHpNontu0RVzek_7P9_jp93f3Pqn8,16
80
- tradedangerous-11.5.0.dist-info/RECORD,,
75
+ tradedangerous-11.5.1.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
76
+ tradedangerous-11.5.1.dist-info/METADATA,sha256=yYK-c5TnEqaGG9gmaTSVGX5tzjxrY7PMuo24Vk1ljIQ,4435
77
+ tradedangerous-11.5.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
78
+ tradedangerous-11.5.1.dist-info/entry_points.txt,sha256=lrA7U9JHOcNuam2WEK4Hmc3vQ3mrJfsbJCE74qd9au8,62
79
+ tradedangerous-11.5.1.dist-info/top_level.txt,sha256=JEoOVAhg5GfXZ4kHpNontu0RVzek_7P9_jp93f3Pqn8,16
80
+ tradedangerous-11.5.1.dist-info/RECORD,,