From 3202fd2fb93c03ab3f0936226cb2bf131b132b79 Mon Sep 17 00:00:00 2001 From: joyfuI <1342862+joyfuI@users.noreply.github.com> Date: Thu, 5 May 2022 21:19:57 +0900 Subject: [PATCH] =?UTF-8?q?Unknown=20format=20code=20'd'=20for=20object=20?= =?UTF-8?q?of=20type=20'float'=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic_normal.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/logic_normal.py b/logic_normal.py index 7a8e41d..0f014f9 100644 --- a/logic_normal.py +++ b/logic_normal.py @@ -27,8 +27,8 @@ class LogicNormal(object): def get_youtube_dl_version(): try: return MyYoutubeDL.get_version() - except Exception as e: - logger.error("Exception:%s", e) + except Exception as error: + logger.error("Exception:%s", error) logger.error(traceback.format_exc()) return "패키지 임포트 실패" @@ -138,8 +138,8 @@ class LogicNormal(object): youtube_dl.key = kwagrs.get("key") LogicNormal.youtube_dl_list.append(youtube_dl) # 리스트 추가 return youtube_dl - except Exception as e: - logger.error("Exception:%s", e) + except Exception as error: + logger.error("Exception:%s", error) logger.error(traceback.format_exc()) return None @@ -189,8 +189,8 @@ class LogicNormal(object): youtube_dl.key = kwagrs.get("key") LogicNormal.youtube_dl_list.append(youtube_dl) # 리스트 추가 return youtube_dl - except Exception as e: - logger.error("Exception:%s", e) + except Exception as error: + logger.error("Exception:%s", error) logger.error(traceback.format_exc()) return None @@ -237,8 +237,8 @@ class LogicNormal(object): youtube_dl.key = kwagrs.get("key") LogicNormal.youtube_dl_list.append(youtube_dl) # 리스트 추가 return youtube_dl - except Exception as e: - logger.error("Exception:%s", e) + except Exception as error: + logger.error("Exception:%s", error) logger.error(traceback.format_exc()) return None @@ -315,10 +315,10 @@ class LogicNormal(object): data["start_time"] = youtube_dl.start_time.strftime("%m-%d %H:%M:%S") data[ "download_time" - ] = f"{download_time.seconds / 60:02d}:{download_time.seconds % 60:02d}" + ] = f"{download_time.seconds / 60:02f}:{download_time.seconds % 60:02f}" return data - except Exception as e: - logger.error("Exception:%s", e) + except Exception as error: + logger.error("Exception:%s", error) logger.error(traceback.format_exc()) return None