diff --git a/inkycal/modules/inkycal_stocks.py b/inkycal/modules/inkycal_stocks.py index 0aedfcf..ca00cc9 100755 --- a/inkycal/modules/inkycal_stocks.py +++ b/inkycal/modules/inkycal_stocks.py @@ -82,7 +82,8 @@ class Stocks(inkycal_module): tmpPath = '/tmp/inkycal_stocks/' try: - os.mkdir(tmpPath) + if not os.path.exists(tmpPath): + os.mkdir(tmpPath) except OSError: print(f"Creation of tmp directory {tmpPath} failed") else: