style: reformat file

This commit is contained in:
BuildTools 2024-08-16 17:29:48 -07:00
parent 9c2346baec
commit 97378b0009
No known key found for this signature in database
GPG Key ID: 3270C066C15D530B
1 changed files with 2 additions and 2 deletions

View File

@ -759,9 +759,9 @@ def __init__(self):
self.logger.info(AUTOGGUF_INITIALIZATION_COMPLETE) self.logger.info(AUTOGGUF_INITIALIZATION_COMPLETE)
def parse_resolution(self): def parse_resolution(self):
res = os.environ.get('AUTOGGUF_RESOLUTION', '1650x1100') res = os.environ.get("AUTOGGUF_RESOLUTION", "1650x1100")
try: try:
width, height = map(int, res.split('x')) width, height = map(int, res.split("x"))
if width <= 0 or height <= 0: if width <= 0 or height <= 0:
raise ValueError raise ValueError
return width, height return width, height