From 150a17cf87f33814052708a7a9b22493aef9dd08 Mon Sep 17 00:00:00 2001 From: Pedro Oliveira Date: Sun, 22 Mar 2020 21:37:08 +0000 Subject: [PATCH] Fix exception in case log folders already exist --- pimdm/Daemon/Daemon.py | 2 +- pimdm/Run.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pimdm/Daemon/Daemon.py b/pimdm/Daemon/Daemon.py index ab45c46..b722812 100644 --- a/pimdm/Daemon/Daemon.py +++ b/pimdm/Daemon/Daemon.py @@ -22,7 +22,7 @@ def daemonize(self): sys.exit(1) # decouple from parent environment - os.makedirs('/var/log/pimdm/') + os.makedirs('/var/log/pimdm/', exist_ok=True) os.chdir('/var/log/pimdm/') os.setsid() os.umask(0) diff --git a/pimdm/Run.py b/pimdm/Run.py index bdaccbb..ebea1cc 100644 --- a/pimdm/Run.py +++ b/pimdm/Run.py @@ -9,7 +9,7 @@ import argparse import traceback -VERSION = "1.0.4.1" +VERSION = "1.0.4.2" def client_socket(data_to_send): # Create a UDS socket diff --git a/setup.py b/setup.py index 97dea48..8724c5c 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ long_description=open("README.md", "r").read(), long_description_content_type="text/markdown", keywords="PIM-DM Multicast Routing Protocol Dense-Mode Router RFC3973", - version="1.0.4.1", + version="1.0.4.2", url="http://github.com/pedrofran12/pim_dm", author="Pedro Oliveira", author_email="pedro.francisco.oliveira@tecnico.ulisboa.pt",