resolve more flake8 problems

This commit is contained in:
Lincoln Stein 2023-08-20 15:57:15 -04:00
parent ef317be1f9
commit 766cb887e4
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
Init file for InvokeAI configure package Init file for InvokeAI configure package
""" """
from .invokeai_config import ( from .invokeai_config import ( # noqa F401
InvokeAIAppConfig, InvokeAIAppConfig,
get_invokeai_config, get_invokeai_config,
) )

View File

@ -230,10 +230,10 @@ def int_or_float_or_str(value: str) -> Union[int, float, str]:
""" """
try: try:
return int(value) return int(value)
except: except Exception as e: # noqa F841
pass pass
try: try:
return float(value) return float(value)
except: except Exception as e: # noqa F841
pass pass
return str(value) return str(value)