From 7f212b9098fa72369b997de86d2606de05fc9b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Thu, 8 Sep 2016 15:03:31 +0300 Subject: [PATCH] minor fixing util --- opt/ahenk/base/util/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index c24d732..590e8e1 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -44,7 +44,8 @@ class Util: @staticmethod def delete_file(full_path): try: - os.remove(full_path) + if Util.is_exist(full_path): + os.remove(full_path) except: raise